docs.unity3d.com
    Show / Hide Table of Contents

    Class MessageBuilderUtils

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

    Inheritance
    Object
    MessageBuilderUtils
    Namespace: UnityEngine.Perception.GroundTruth.DataModel
    Syntax
    public static class MessageBuilderUtils : object

    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
    Single[]

    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
    Single[]

    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
    Single[]

    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
    Single[]

    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
    Single[][]

    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
    Int32[]

    The converted data type

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023