文档

Unity Engine

Unity Engine

ToPosition2D(Vector3, TransformPlane)

Transform a 3D position into a 2D position using the selected transform plane.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static Vector2 ToPosition2D(Vector3 position, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)

Parameters

position

The 3D position to transform.

transformPlane

The transform plane to use.

Returns

Type

Description

Vector2The transformed position.