Interface IGltfReadable
Provides read-only access to a glTF (schema and imported Unity resources)
Namespace: GLTFast
Assembly: solution.dll
Syntax
public interface IGltfReadable
Properties
Name | Description |
---|---|
ImageCount | Number of images |
MaterialCount | Number of materials |
TextureCount | Number of textures |
Methods
Name | Description |
---|---|
GetAccessor(int) | Creates a generic byte-array view into an accessor. Only available during loading phase as underlying buffers are disposed right afterwards. |
GetBindPoses(int) | Returns an array of inverse bone matrices representing a skin's bind pose suitable for use with UnityEngine.Mesh.bindposes by glTF skin index. |
GetDefaultMaterial() | Returns a fallback material to be used when no material was assigned (provided by the IMaterialGenerator) |
GetImage(int) | Get texture by glTF image index |
GetMaterial(int) | Get a Unity Material by its glTF material index |
GetSourceCamera(uint) | Get source (de-serialized glTF) camera |
GetSourceImage(int) | Get source (de-serialized glTF) image |
GetSourceLightPunctual(uint) | Get source (de-serialized glTF) light |
GetSourceMaterial(int) | Get source (de-serialized glTF) material |
GetSourceNode(int) | Get source (de-serialized glTF) node |
GetSourceScene(int) | Get source (de-serialized glTF) scene |
GetSourceTexture(int) | Get source (de-serialized glTF) texture |
GetTexture(int) | Get texture by glTF texture index |
IsTextureYFlipped(int) | Evaluates if the texture's vertical orientation conforms to Unity's default. If it's not aligned (=true; =flipped), the texture has to be applied mirrored vertically. |