Skip to content

Instantly share code, notes, and snippets.

@sakim
Created October 15, 2013 10:12
Show Gist options
  • Select an option

  • Save sakim/6989459 to your computer and use it in GitHub Desktop.

Select an option

Save sakim/6989459 to your computer and use it in GitHub Desktop.

Revisions

  1. sakim created this gist Oct 15, 2013.
    2 changes: 2 additions & 0 deletions gistfile1.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    Object prefab = Resources.Load("Prefabs/prefab1"); // Assets/Resources/Prefabs/prefab1.FBX
    GameObject t = (GameObject) Instantiate(prefab, new Vector3(0, 0, 0), Quaternion.identity);