- Home /
Accesing functions from Editor
I have the ObjExporter.cs script from "Unify Community Wiki"
The problem is that I can only export the meshes in the editor, not in run time. How can I call the script, or something else, so as I can export a mesh from unity(made in tun time)??
There's a version that works at run time in that link you provided (the first script is a runtime script)
It is not derived from $$anonymous$$onobehavior, and both methods are static. No need to attach it to a game object. No need to do a 'new' to create an instance of the class. So create a new C# script file and replace everything in it the first block on the page. Then to call it:
ObjExporter.$$anonymous$$eshToFile(my$$anonymous$$esh, filename);
Your answer
Follow this Question
Related Questions
How properly export an object in fbx/obj format with materials and textures from Unity 1 Answer
Way to accurately export terrain? 0 Answers
Exporting user created gameobject to folder on server as obj WebGL? 0 Answers
How can I select asset dependencies when using AssetDatabase.ExportPackage 0 Answers
How to access editor script function? 0 Answers