Class BufferView
A view into a buffer generally representing a subset of the buffer.
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class BufferView : NamedObject
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 |
Buffer
The index of the buffer.
Declaration
[JsonPropertyName("buffer")]
public int? Buffer { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
ByteLength
The length of the bufferView in bytes.
Declaration
[JsonPropertyName("byteLength")]
public int ByteLength { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ByteOffset
The offset into the buffer in bytes.
Declaration
[JsonPropertyName("byteOffset")]
public int ByteOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ByteStride
The stride, in bytes, between vertex attributes or other interleaved data. When this is zero, data is tightly packed.
Declaration
[JsonPropertyName("byteStride")]
public int? ByteStride { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Extensions
BufferView extensions
Declaration
[JsonPropertyName("extensions")]
public BufferViewExtensions Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| BufferViewExtensions |
See Also
Extras
Application-specific data.
Declaration
[JsonPropertyName("extras")]
[JsonConverter(typeof(ExtrasConverter))]
public ExtrasContainer Extras { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtrasContainer |
See Also
Target
The target that the WebGL buffer should be bound to. All valid values correspond to WebGL enums. When this is not provided, the bufferView contains animation or skin data.
Declaration
[JsonPropertyName("target")]
public BufferViewTarget Target { get; set; }
Property Value
| Type | Description |
|---|---|
| BufferViewTarget |