Skip to content

Instantly share code, notes, and snippets.

@sakim
sakim / gist:6989459
Created October 15, 2013 10:12
Unity3D: Load FBX prefab and create a gameobject from it.
Object prefab = Resources.Load("Prefabs/prefab1"); // Assets/Resources/Prefabs/prefab1.FBX
GameObject t = (GameObject) Instantiate(prefab, new Vector3(0, 0, 0), Quaternion.identity);