기술 자료

Unity Engine

Unity Engine

ToPosition3D(Vector2, Vector3, TransformPlane)

Transform a 2D position into a 3D position using the selected transform plane.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Parameters

position

The 2D position to transform.

reference

The 3D position used as a reference.

transformPlane

The transform plane to use.

Returns

Type

Description

Vector3The transformed position.