unity3d小白求点拨!!

public class OptZuJian : MonoBehaviour {

// Use this for initialization
void Start () {
    GameObject fushou = GameObject.Find("fushou");
    GameObject fushou1 = (GameObject)Object.Instantiate(fushou);
    fushou1.transform.position = new Vector3(1,0,-3);

            }
}

我在Hierarchy中有fushou,却给我报这个错误
ArgumentException: The Object you want to instantiate is null.

UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.cs:238)

请给位大神指点迷津!

1个回答

那个是不是隐藏了,隐藏了就找不到

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问