Created
October 15, 2013 10:12
-
-
Save sakim/6989459 to your computer and use it in GitHub Desktop.
Unity3D: Load FBX prefab and create a gameobject from it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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