Class Attributes
Mesh vertex attribute collection. Each property value is the index of the accessor containing attribute’s data.
Inherited Members
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?> |