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