MaterialInstance
A class in Root.Township, Alta.Rendering.
Takes a renderer's own material copy (renderer.material) and cleans it up when disposed, so the copy does not leak.
- Listed in Utilities and other Alta namespaces
- Inherits or implements
IDisposable - Derived types
MaterialInstanceGroup
Constructors
| Member | What it is |
|---|---|
MaterialInstance(Renderer renderer) | Creates a MaterialInstance from renderer. |
Properties
| Member | What it is |
|---|---|
Material Material { get; } | The renderer's own material copy, made when this object is created. |
Renderer Renderer { get; } | The renderer the material belongs to. |
Methods
| Member | What it is |
|---|---|
void Dispose() | Cleans up the material copy. |
Used in
Members of other types that take, return or hold a MaterialInstance: