docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PrimvarToVertexAttributeMapping

    Allow to provide a PrimVar name mapping for mesh components.

    Inheritance
    object
    PrimvarToVertexAttributeMapping
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    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
    [Serializable]
    public class PrimvarToVertexAttributeMapping : ISerializationCallbackReceiver
    Remarks

    e.g : If a DCC is using an unsupported PrimVar name for TextCoord0, a user can add it using this graph setting.

    Constructors

    PrimvarToVertexAttributeMapping(string[], string[], string[], string[], string[], string[], string[], string[], string[])

    Declaration
    public PrimvarToVertexAttributeMapping(string[] color = null, string[] textCoord0 = null, string[] textCoord1 = null, string[] textCoord2 = null, string[] textCoord3 = null, string[] textCoord4 = null, string[] textCoord5 = null, string[] textCoord6 = null, string[] textCoord7 = null)
    Parameters
    Type Name Description
    string[] color
    string[] textCoord0
    string[] textCoord1
    string[] textCoord2
    string[] textCoord3
    string[] textCoord4
    string[] textCoord5
    string[] textCoord6
    string[] textCoord7

    Fields

    Color

    Color set

    Declaration
    public string[] Color
    Field Value
    Type Description
    string[]

    TextCoord0

    Texture Coordinates #0

    Declaration
    public string[] TextCoord0
    Field Value
    Type Description
    string[]

    TextCoord1

    Texture Coordinates #1

    Declaration
    public string[] TextCoord1
    Field Value
    Type Description
    string[]

    TextCoord2

    Texture Coordinates #2

    Declaration
    public string[] TextCoord2
    Field Value
    Type Description
    string[]

    TextCoord3

    Texture Coordinates #3

    Declaration
    public string[] TextCoord3
    Field Value
    Type Description
    string[]

    TextCoord4

    Texture Coordinates #4

    Declaration
    public string[] TextCoord4
    Field Value
    Type Description
    string[]

    TextCoord5

    Texture Coordinates #5

    Declaration
    public string[] TextCoord5
    Field Value
    Type Description
    string[]

    TextCoord6

    Texture Coordinates #6

    Declaration
    public string[] TextCoord6
    Field Value
    Type Description
    string[]

    TextCoord7

    Texture Coordinates #7

    Declaration
    public string[] TextCoord7
    Field Value
    Type Description
    string[]

    Properties

    VertexAttributeToPrimvarMap

    Mapping from vertex attributes' names to Color and Texture Coordinates

    Declaration
    public Dictionary<string, string> VertexAttributeToPrimvarMap { get; }
    Property Value
    Type Description
    Dictionary<string, string>

    Methods

    ComputeVertexAttributeToPrimvarMap(string[], string[], string[], string[], string[], string[], string[], string[], string[])

    Declaration
    public static Dictionary<string, string> ComputeVertexAttributeToPrimvarMap(string[] colors, string[] textCoord0, string[] textCoord1, string[] textCoord2, string[] textCoord3, string[] textCoord4, string[] textCoord5, string[] textCoord6, string[] textCoord7)
    Parameters
    Type Name Description
    string[] colors
    string[] textCoord0
    string[] textCoord1
    string[] textCoord2
    string[] textCoord3
    string[] textCoord4
    string[] textCoord5
    string[] textCoord6
    string[] textCoord7
    Returns
    Type Description
    Dictionary<string, string>

    OnAfterDeserialize()

    Implement this method to receive a callback after Unity deserializes your object.

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Implement this method to receive a callback before Unity serializes your object.

    Declaration
    public void OnBeforeSerialize()

    Implements

    ISerializationCallbackReceiver
    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)