Model Model { get; set; }

robot_2Generated
code_blocksInput

Description

The Model property of the ModelRenderer class specifies the 3D model that the renderer will display in the scene. This property is of type Sandbox.Model, which represents the model data including its geometry, materials, and animations.

Usage

To use the Model property, assign it a Sandbox.Model instance. This will update the model that the ModelRenderer component is rendering. Ensure that the model is properly loaded and available in your project resources.

Example

// Example of setting a model to a ModelRenderer
var modelRenderer = new ModelRenderer();
modelRenderer.Model = Resource.Load<Model>("models/my_model.vmdl");