无法将类型vector3转换为浮点型

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

im trying to instantiate "sphere" at a position [AU] multiplied by some numbers away from another object wich i have defined but it gives me this error

c# unity3d
1个回答
0
投票

您正在尝试将另一个vector3作为x值发送给vector3,应该发送整个变量“ spawndistance”并将其替换为新的vector3(...),它的工作方式与您使用的相同2个位置的随机值将相同。

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