文档

Unity Engine

Unity Engine

Set(float, float)

Set x and y components of an existing Vector2.
阅读时间1 分钟最后更新于 1 天前

Definition

public void Set(float newX, float newY)

Parameters

newX

The x component to set.

newY

The y component to set.