Skip to content

Instantly share code, notes, and snippets.

@sakim
Created October 15, 2013 10:12
Show Gist options
  • Save sakim/6989459 to your computer and use it in GitHub Desktop.
Save sakim/6989459 to your computer and use it in GitHub Desktop.
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment