docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MessageBuilderUtils

    Helper class that converts from common data types into message builder types.

    Inheritance
    object
    MessageBuilderUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.GroundTruth.DataModel
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    public static class MessageBuilderUtils

    Methods

    ToFloatVector(float3)

    Converts a float3 into an int vector

    Declaration
    public static float[] ToFloatVector(float3 inData)
    Parameters
    Type Name Description
    float3 inData

    The data to convert

    Returns
    Type Description
    float[]

    The converted data type

    ToFloatVector(Quaternion)

    Converts a Quaternion into a float vector

    Declaration
    public static float[] ToFloatVector(Quaternion inData)
    Parameters
    Type Name Description
    Quaternion inData

    The data to convert

    Returns
    Type Description
    float[]

    The converted data type

    ToFloatVector(Vector2)

    Converts a Vector2 into an int vector

    Declaration
    public static float[] ToFloatVector(Vector2 inData)
    Parameters
    Type Name Description
    Vector2 inData

    The data to convert

    Returns
    Type Description
    float[]

    The converted data type

    ToFloatVector(Vector3)

    Converts a Vector3 into an int vector

    Declaration
    public static float[] ToFloatVector(Vector3 inData)
    Parameters
    Type Name Description
    Vector3 inData

    The data to convert

    Returns
    Type Description
    float[]

    The converted data type

    ToFloatVector2(float3x3)

    Converts a float3x3 into an int vector

    Declaration
    public static float[][] ToFloatVector2(float3x3 inData)
    Parameters
    Type Name Description
    float3x3 inData

    The data to convert

    Returns
    Type Description
    float[][]

    The converted data type

    ToIntVector(Color32)

    Converts a color32 into an int vector

    Declaration
    public static int[] ToIntVector(Color32 inData)
    Parameters
    Type Name Description
    Color32 inData

    The data to convert

    Returns
    Type Description
    int[]

    The converted data type

    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)