The Model component renders a static or animated 3D model in your scene. Lumin Runtime uses a proprietary material file format called a kmat to bind materials to renderable surfaces. When creating your model, ensure you use <material_name>.kmat to reference the material. Your textures are referenced in the kmat file. We recommend creating kmat files with the Lumin Runtime Editor.
- FBX file format is currently supported on Magic Leap One.
|File name of the model resource to load. By default this is assumed to be a relative path from the executable file.
|File name of the material resource to load. By default this is assumed to be a relative path from the executable file.
|The scale that is applied to this resource.
|An array of file names of the texture resources. By default this is assumed to be a relative path from the executable file.
|Default index from the texturePaths.
|The texture slot, such as
|The name of the material.
|Sets the animation pause state for the current model node.
|Sets the playback speed for animations.
|Sets the current time of the animation.
|Sets the ID of the resource this node draws. The ID refers to a ModelResource.
|Sets the current animation by
name. Some animation resources contain multiple animations. These are addressed by animation name. FBX models, for example, may contain 1-n animations.
|Sets the texture of a given material by the new texture ID. Material should be the one applied to the Model Node.