Unity Engine documentationScript ReferenceUnityEngineVector2Set(float, float)Set x and y components of an existing Vector2.阅读时间1 分钟最后更新于 1 个月前Definition Type: Method Namespace: UnityEngine Assembly: UnityEngine.CoreModule public void Set(float newX, float newY) Parameters newXfloatThe x component to set.newYfloatThe y component to set.