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.
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.
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 of setting a model to a ModelRenderer var modelRenderer = new ModelRenderer(); modelRenderer.Model = Resource.Load<Model>("models/my_model.vmdl");