- Home /
Create mesh array from content inside FBX
I've got an FBX file, containing several meshes. Is it possible to make a custom editor window, that holds an object and pushes out a visuall list of the meshes that the object contains?
In other words: 1. Create Custom window. 2. Make a "target" : Transform node. 3. Display a visual list of all items that "target" contains.
Hope this makes sence in any way.
Answer by Paulius-Liekis · Dec 03, 2012 at 11:08 AM
Yes, it is possible.
Edit:
Which part doesn't work for you?
You render GUI object with GUI classes
Create a temp camera for rendering meshes and assign a RenderTexture to it
You can render meshes in multiple ways, but probably the most simple on is to use: http://docs.unity3d.com/Documentation/ScriptReference/Graphics.DrawMesh.html
Once mesh is rendered into RenderTexture, you can use that RenderTexture as an element in your GUI
Sorry for not commenting this in a while... Been trying to make this work, but nothing i do seems to do the trick. Any tips on how to do this or maby something that will take me in the right direction? I have read the documentations on this subject and still nothing for some strange reason. :/