기술 자료

Unity Engine

Unity Engine

ToPosition2D(Vector3, TransformPlane)

Transform a 3D position into a 2D position using the selected transform plane.
읽는 시간 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.