1. 程式人生 > >Unity3d中UnassignedReferenceException: The variable target of Moving has not been assigned. You proba

Unity3d中UnassignedReferenceException: The variable target of Moving has not been assigned. You proba

  在unity中出現

UnassignedReferenceException: The variable target of Moving has not been assigned.

You probably need to assign the target variable of the Moving script in the inspector.

Moving.Update () (at Assets/_Tutorial/Moving.cs:13)


發現如上圖中 traget 為none  把物體拉到裡面進行設定就可以了