docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TransformValues

    Represents a compact TRS (translation, rotation, scale) structure.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Cloud.DataStreaming.Runtime
    Assembly: solution.dll
    Syntax
    public struct TransformValues

    Constructors

    TransformValues(double3, quaternion, float)

    Creates a TransformValues from a position, rotation, and scale.

    Declaration
    public TransformValues(double3 position, quaternion rotation, float scale)
    Parameters
    Type Name Description
    double3 position

    The position of the transform.

    quaternion rotation

    The rotation of the transform.

    float scale

    The uniform scale of the transform.

    Properties

    Position

    The position of the transform.

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

    Rotation

    The rotation of the transform.

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

    Scale

    The scale of the transform.

    Declaration
    public float Scale { get; set; }
    Property Value
    Type Description
    float

    Methods

    FromTransform(Transform)

    Convert a single precision Unity Transform instance to a new TransformValues instance.

    Declaration
    public static TransformValues FromTransform(Transform transform)
    Parameters
    Type Name Description
    Transform transform

    The instance to convert.

    Returns
    Type Description
    TransformValues

    A new TransformValues instance.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)