Modifier

TestUtilities.PlaceRelativeToPlayspace Method

Definition

Overloads

PlaceRelativeToPlayspace(Transform)

Place the transform in world space as if its current world pose were its local pose and it was attached to the playspace.

PlaceRelativeToPlayspace(Vector3, Quaternion)

Return a pose equivalent to the input local pose appended to the current playspace pose.

PlaceRelativeToPlayspace(Transform, Vector3, Quaternion)

Place the transform in world space as if it had the input local pose and was attached to the playspace.

PlaceRelativeToPlayspace(Transform)

Place the transform in world space as if its current world pose were its local pose and it was attached to the playspace.

public:
 static void PlaceRelativeToPlayspace(UnityEngine::Transform ^ transform);
public static void PlaceRelativeToPlayspace (UnityEngine.Transform transform);
static member PlaceRelativeToPlayspace : UnityEngine.Transform -> unit
Public Shared Sub PlaceRelativeToPlayspace (transform As Transform)

Parameters

transform
UnityEngine.Transform

The transform to place.

Remarks

If the transform has no parent, then this is equivalent to the following sequence:

1) transform.SetParent(MixedRealityPlayspace.Transform, false);

2) transform.SetParent(null, true);

However, if the transform has a parent, then the transform's world transform, not just its local transform, will determine its final pose relative to the playspace.

Applies to

PlaceRelativeToPlayspace(Vector3, Quaternion)

Return a pose equivalent to the input local pose appended to the current playspace pose.

public:
 static UnityEngine::Pose PlaceRelativeToPlayspace(UnityEngine::Vector3 localPosition, UnityEngine::Quaternion localRotation);
public static UnityEngine.Pose PlaceRelativeToPlayspace (UnityEngine.Vector3 localPosition, UnityEngine.Quaternion localRotation);
static member PlaceRelativeToPlayspace : UnityEngine.Vector3 * UnityEngine.Quaternion -> UnityEngine.Pose
Public Shared Function PlaceRelativeToPlayspace (localPosition As Vector3, localRotation As Quaternion) As Pose

Parameters

localPosition
UnityEngine.Vector3

Position relative to playspace.

localRotation
UnityEngine.Quaternion

Orientation relative to playspace.

Returns

UnityEngine.Pose

Equivalent pose.

Remarks

This computes the world pose an object with the input local pose would have if it were a child of the playspace.

Applies to

PlaceRelativeToPlayspace(Transform, Vector3, Quaternion)

Place the transform in world space as if it had the input local pose and was attached to the playspace.

public:
 static void PlaceRelativeToPlayspace(UnityEngine::Transform ^ transform, UnityEngine::Vector3 localPosition, UnityEngine::Quaternion localRotation);
public static void PlaceRelativeToPlayspace (UnityEngine.Transform transform, UnityEngine.Vector3 localPosition, UnityEngine.Quaternion localRotation);
static member PlaceRelativeToPlayspace : UnityEngine.Transform * UnityEngine.Vector3 * UnityEngine.Quaternion -> unit
Public Shared Sub PlaceRelativeToPlayspace (transform As Transform, localPosition As Vector3, localRotation As Quaternion)

Parameters

transform
UnityEngine.Transform

The transform to place.

localPosition
UnityEngine.Vector3

The local position in playspace.

localRotation
UnityEngine.Quaternion

The local rotation in playspace.

Remarks

Note that the transform's current local and world poses are ignored and overwritten.

Applies to