docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Attributes

    Mesh vertex attribute collection. Each property value is the index of the accessor containing attribute’s data.

    Inheritance
    object
    Attributes
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Gltfast.Objects
    Assembly: Unity.Cloud.Gltfast.dll
    Syntax
    [JsonConverter(typeof(AttributesConverter))]
    [MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
    public class Attributes

    Properties

    AdditionalProperties

    Additional properties on glTF JSON objects. Those properties may have been added by a new, unsupported version of the glTF specification. For extending glTF, please use extensions or extras instead.

    Declaration
    [JsonIgnore]
    public ReadOnlyProperties AdditionalProperties { get; }
    Property Value
    Type Description
    ReadOnlyProperties

    Colors

    Vertex color accessor indices (COLOR_n). Same semantics as TexCoords; see GetColor(Attributes, int)/SetColor(Attributes, int, int?).

    Declaration
    public List<int?> Colors { get; set; }
    Property Value
    Type Description
    List<int?>

    Joints

    Bone joint accessor indices (JOINTS_n). Same semantics as TexCoords; see GetJoint(Attributes, int)/SetJoint(Attributes, int, int?).

    Declaration
    public List<int?> Joints { get; set; }
    Property Value
    Type Description
    List<int?>

    Normal

    Vertex normals accessor index.

    Declaration
    public int? Normal { get; set; }
    Property Value
    Type Description
    int?

    Position

    Vertex position accessor index.

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

    Tangent

    Vertex tangents accessor index.

    Declaration
    public int? Tangent { get; set; }
    Property Value
    Type Description
    int?

    TexCoords

    Texture coordinate accessor indices. List index n corresponds to the glTF semantic TEXCOORD_n. Sparse holes are null. Use the GetTexCoord(Attributes, int)/SetTexCoord(Attributes, int, int?) extension methods for bounds-checked index access.

    Declaration
    public List<int?> TexCoords { get; set; }
    Property Value
    Type Description
    List<int?>

    Weights

    Bone weight accessor indices (WEIGHTS_n). Same semantics as TexCoords; see GetWeight(Attributes, int)/SetWeight(Attributes, int, int?).

    Declaration
    public List<int?> Weights { get; set; }
    Property Value
    Type Description
    List<int?>

    Extension Methods

    AttributesExtensions.GetColor(Attributes, int)
    AttributesExtensions.GetJoint(Attributes, int)
    AttributesExtensions.GetTexCoord(Attributes, int)
    AttributesExtensions.GetTexCoordsCount(Attributes)
    AttributesExtensions.GetWeight(Attributes, int)
    AttributesExtensions.SetColor(Attributes, int, int?)
    AttributesExtensions.SetJoint(Attributes, int, int?)
    AttributesExtensions.SetTexCoord(Attributes, int, int?)
    AttributesExtensions.SetWeight(Attributes, int, int?)
    In This Article
    Back to top
    Copyright © 2026 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)