Mesh3DComponentExtensions
Summary
Definition
Namespace: SDT4.Managed.Renderer.Extensions
Assembly: SDT4.Managed.Renderer.dll
static class Mesh3DComponentExtensions
Inheritance:
Object ➔ Mesh3DComponentExtensions
Implements:
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
Methods
public static Boolean BindMaterialInstance(Mesh3DComponent component, Int32 slot, MaterialInstance instance)
Summary
Binds the given material instance to this mesh.
Parameters:
-
component(Mesh3DComponent): -
slot(Int32): index to bind -
instance(MaterialInstance): material instance to bind
Returns:
- Boolean: True if binding succeeded. If the engine runs out of available slots, it will return false.
public static Void UnbindMaterialInstance(Mesh3DComponent component, Int32 slot)
Summary
Unbinds the material instance from this slot
Parameters:
-
component(Mesh3DComponent): -
slot(Int32): index to remove the bound material instance