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

来源:互联网 发布:历史api数据后原油波动 编辑:程序博客网 时间:2024/05/16 06:55

  在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  把物体拉到里面进行设置就可以了

0 0
原创粉丝点击