Unity Editor Scripting :

If you ever have to create an instance (in hierarchy) from an .fbx file and a prefab from an instance, you can use following commands.

1 .fbx to instance      : PrefabUtility.InstantiatePrefab
2 instance to .prefab : PrefabUtility.CreatePrefab

Creating AnimatorController file : 
AssetDatabase.CreateAsset 


Comments

Popular posts from this blog

Bounding Box in PIL (Python Image Library)

Dictionary vs KeyValuePair vs Struct - C#

Rendering order and Z-sorting