docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BaseMatrixConversionNode<T>

    Basis for node reading transform matrices from a USD file and converting them to XFormableDescription.

    Inheritance
    object
    Node<T, BaseMatrixConversionNode<T>.OutputPort>
    BaseMatrixConversionNode<T>
    ConvertSkeletonRigToXFormableNode
    ReadXFormNode
    Implements
    INode<T, BaseMatrixConversionNode<T>.OutputPort>
    INodeSerialization
    Inherited Members
    Node<T, BaseMatrixConversionNode<T>.OutputPort>.Input
    Node<T, BaseMatrixConversionNode<T>.OutputPort>.Output
    Node<T, BaseMatrixConversionNode<T>.OutputPort>.Run()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Importer.USD
    Assembly: Unity.Importer.USD.dll
    Syntax
    public abstract class BaseMatrixConversionNode<T> : Node<T, BaseMatrixConversionNode<T>.OutputPort>, INode<T, BaseMatrixConversionNode<T>.OutputPort>, INodeSerialization where T : InputPorts
    Type Parameters
    Name Description
    T

    Fields

    k_JobBatchCount

    Number of workers to use per job

    Declaration
    protected const int k_JobBatchCount = 8
    Field Value
    Type Description
    int

    Methods

    ConvertMatrixToTRS(NativeArray<float4x4>, NativeArray<TransformData>, bool, float)

    Converts 4x4 matrices to TransformData structures while applying required axis conversion and scale factor

    Declaration
    protected static void ConvertMatrixToTRS(NativeArray<float4x4> matrices, NativeArray<TransformData> TRSs, bool ZupToYup = false, float scaleFactor = 1)
    Parameters
    Type Name Description
    NativeArray<float4x4> matrices
    NativeArray<TransformData> TRSs
    bool ZupToYup
    float scaleFactor

    TRSToXFormableDescriptions(string[], NativeArray<TransformData>)

    Helper method that populates the xFormableDescriptions output

    Declaration
    protected void TRSToXFormableDescriptions(string[] transformPaths, NativeArray<TransformData> TRSs)
    Parameters
    Type Name Description
    string[] transformPaths
    NativeArray<TransformData> TRSs

    Implements

    INode<TInput, TOutput>
    INodeSerialization
    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)