Class Texture
A texture is defined by an image and a sampler.
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class Texture : 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 |
Extensions
Texture extensions
Declaration
[JsonPropertyName("extensions")]
public TextureExtensions Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| TextureExtensions |
Extras
Application-specific data.
Declaration
[JsonPropertyName("extras")]
[JsonConverter(typeof(ExtrasConverter))]
public ExtrasContainer Extras { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtrasContainer |
See Also
IsKtx
True, if the texture is of the KTX format.
Declaration
[JsonIgnore]
public bool IsKtx { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Sampler
The index of the sampler used by this texture.
Declaration
[JsonPropertyName("sampler")]
public int? Sampler { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Source
The index of the image used by this texture.
Declaration
[JsonPropertyName("source")]
public int? Source { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Methods
GetImageIndex()
Retrieves the final image index.
Declaration
public int? GetImageIndex()
Returns
| Type | Description |
|---|---|
| int? | Final image index |