Edit

Bagikan melalui


TestUtilities.PlayspaceToPositionAndRotation(Vector3, Quaternion) Method

Definition

Force the playspace camera into the specified position and orientation.

public:
 static void PlayspaceToPositionAndRotation(UnityEngine::Vector3 position, UnityEngine::Quaternion rotation);
public static void PlayspaceToPositionAndRotation (UnityEngine.Vector3 position, UnityEngine.Quaternion rotation);
static member PlayspaceToPositionAndRotation : UnityEngine.Vector3 * UnityEngine.Quaternion -> unit
Public Shared Sub PlayspaceToPositionAndRotation (position As Vector3, rotation As Quaternion)

Parameters

position
UnityEngine.Vector3

World space position for the playspace.

rotation
UnityEngine.Quaternion

World space orientation for the playspace.

Remarks

Note that this has no effect on the camera's local space transform, but will change the camera's world space position. If and only if the camera's local transform is identity with the camera's world transform equal the playspace's.

Applies to