日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class MixedRealityPlayspace

    A static class encapsulating the Mixed Reality playspace.

    Inheritance
    Object
    MixedRealityPlayspace
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public static class MixedRealityPlayspace

    Properties

    Position

    The location of the playspace.

    Declaration
    public static Vector3 Position { get; set; }
    Property Value
    Type Description
    Vector3

    Rotation

    The playspace's rotation.

    Declaration
    public static Quaternion Rotation { get; set; }
    Property Value
    Type Description
    Quaternion

    Transform

    The transform of the playspace.

    Declaration
    public static Transform Transform { get; }
    Property Value
    Type Description
    Transform

    Methods

    AddChild(Transform)

    Adds a child object to the playspace's hierarchy.

    Declaration
    public static void AddChild(Transform transform)
    Parameters
    Type Name Description
    Transform transform

    The child object's transform.

    Destroy()

    Declaration
    public static void Destroy()

    InverseTransformDirection(Vector3)

    Transforms a direction from world to local space.

    Declaration
    public static Vector3 InverseTransformDirection(Vector3 worldDirection)
    Parameters
    Type Name Description
    Vector3 worldDirection

    The direction to be transformed.

    Returns
    Type Description
    Vector3

    The direction, in local space.

    InverseTransformPoint(Vector3)

    Transforms a position from world to local space.

    Declaration
    public static Vector3 InverseTransformPoint(Vector3 worldPosition)
    Parameters
    Type Name Description
    Vector3 worldPosition

    The position to be transformed.

    Returns
    Type Description
    Vector3

    The position, in local space.

    PerformTransformation(Action<Transform>)

    Performs a playspace transformation.

    Declaration
    public static void PerformTransformation(Action<Transform> transformation)
    Parameters
    Type Name Description
    Action<Transform> transformation

    The transformation to be applied to the playspace.

    Remarks

    This method takes a lambda function and may contribute to garbage collector pressure. For best performance, avoid calling this method from an inner loop function.

    RotateAround(Vector3, Vector3, Single)

    Rotates the playspace around the specified axis.

    Declaration
    public static void RotateAround(Vector3 point, Vector3 axis, float angle)
    Parameters
    Type Name Description
    Vector3 point

    The point to pass through during rotation.

    Vector3 axis

    The axis about which to rotate.

    Single angle

    The angle, in degrees, to rotate.

    RuntimeInitializeOnLoadMethod()

    Declaration
    public static void RuntimeInitializeOnLoadMethod()

    TransformDirection(Vector3)

    Transforms a direction from local to world space.

    Declaration
    public static Vector3 TransformDirection(Vector3 localDirection)
    Parameters
    Type Name Description
    Vector3 localDirection

    The direction to be transformed.

    Returns
    Type Description
    Vector3

    The direction, in world space.

    TransformPoint(Vector3)

    Transforms a position from local to world space.

    Declaration
    public static Vector3 TransformPoint(Vector3 localPosition)
    Parameters
    Type Name Description
    Vector3 localPosition

    The position to be transformed.

    Returns
    Type Description
    Vector3

    The position, in world space.

    Back to top Generated by DocFX