Hello, everyone.
I am developing a small project in which you insert an obj object (the programme creates a copy), you can make changes to the mesh and then you can export it. A sort of super mega belnder simplified.
My problem now is to save and export the modified mesh.
I searched online but couldn’t find any solution. The only solution I found doesn’t work well on obj files with heavier meshes.
I ask you for help
GLTFast has exporting support.
Not sure if FBX exporter supports runtime exporting
I have been trying it for two days. Apart from compilation errors (perhaps the assembly is missing?), it says on their site that it is partially supported
I have problems with the assembly, I executed the instructions
You just need to set using glTFast.Export.
Why did you put the custom internal assemblies there? I have never used that in Unity
I couldn’t do it… I’ve never used it either xD
The sample is in the link I sent. Follow it and don’t do the internal assembly stuff
**Export via Script**
NOTE: The GLTFast.Export namespace can only be used if you reference both glTFast and glTFast.Export Assemblies in your [Assembly Definition](https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html).
you have to do it, it’s in the guide you sent me
I am not doing your work (unless it is paid (; )
If you do not use assembly definitions, ignore that part. Be default, you do not use it.
Just copy the script in the sample to start testing
I didn’t want you to do my work, I have never worked by modifying the assembly I asked for advice
the example they give doesn’t work.
thanks anyway, don’t answer in forums of people asking for help
The code you shared is not the same. You simply need to put ‘using GLTFast.Export:’ at the top, not all the custom assembly stuff. Never seen that, so no idea how you ended up there
As I wrote before, even if I do ‘using GLTFast.Export’ it gives assembly error, I have tried several solutions but nothing. I asked in the github directly to the developers.
It says in the guide that you have to add it in the assembly, but as I said before, I can’t do it.
Maybe I am clearer now
Share the exact error. If you are using assembly definitions in your project, add gltf there and not in the script
No. Use the forum code tags system (instructions linked below) to post the entire script. Additionally show us every error that you receive. Also show us the assembly definition where you’ve referenced it (the assembly attribute isn’t it if that’s what you’re trying to do).
Are you sure you actually imported the package that DevDunk has mentioned via the PackageManager in Unity? This is an external package that needs to be imported. So you did follow the installation guide of the package? And made sure the package is actually imported in your project?
thank you all for your replies.
I will now show you the error I receive when I copy the example code
As you can see, the pack is installed
I now show you the erorre
As you can see, I copied the example code from the guide. I have the editor in my language, I will translate the error
‘Missing a using directive or an assembly reference.
As I said before, even if I copy everything the same I get this error. I do not know how to solve it as the pack is correctly installed in the project
Well, I never used this package but I quickly had a look. The package is split in at least two separate assemblies. The main one and the “GLTFast.Export” assembly. While the main one has “Auto Referenced” checked, the export assembly has not. You can not really change that since those settings are readonly in the package. That means this library can only really used from inside your own custom assembly definition because there you can / have to reference the other assemblies explicitly you want / need to use.
This “Auto Referenced” checkbox on the assembly definition file makes the default assemblies automatically reference those assemblies or not.
It’s actually mentioned here though a bit hidden:
thank you for your reply.
In order to use it, do I have to move the glft fast folder from package to assets?