“转换”不包含“位置”的定义

问题描述 投票:0回答:1

[“Transform”不包含“postion”的定义,并且找不到接受“Transform”类型的第一个参数的可访问扩展方法“postion”(您是否缺少 using 指令或程序集引用?)]

(http code Imgs://i.stack.imgur.com/CKHPK.png)

(Error Img)

我无法解决这个问题

c# unity3d unityscript
1个回答
0
投票

你拼错了

transform.position
.

© www.soinside.com 2019 - 2024. All rights reserved.