API Reference · Model and texture loading
GltfInstance
public sealed class GltfInstanceOne copy of a GltfAsset in a scene: its own nodes to place and pose, its own GltfInstance.Animator and morph weights, sharing the asset's meshes and textures with every other copy.
Two instances of one asset are two characters. Playing a clip on one moves only its joints; setting a shape on one reshapes only its face. What they share by default is the materials — recolour one and both change — which is what a crowd wants and what MaterialSharing.Copy is there to change for the one who has to be different.
Properties
| Member | Description |
|---|---|
| The player for |
| Everything adjustable about this instance, described well enough to build a panel from. |
| The asset this is a copy of. |
| The clips, bound to this instance's nodes, in the file's order. |
| The materials this instance wears, by the names the file gave them: the asset's, or copies. |
| The node the file's own roots hang from. Move this to move the model. |
| The morph targets, as named parameters, this instance's own. |
| The skeletons, bound to this instance's joints. |
Methods
| Member | Description |
|---|---|
| Puts the instance in a scene: adds returns The instance as a |