Skip to content

Instantly share code, notes, and snippets.

@sakim
Created October 15, 2013 10:12
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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