A class in Root.Township, Alta.Rendering.
Makes a MaterialInstance for each of a set of renderers and disposes them together.
Constructors
| Member | What it is |
|---|
MaterialInstanceGroup(IEnumerable<Renderer> renderers) | Creates a MaterialInstanceGroup from renderers. |
Fields
1 private and internal field
| Member | What it is |
|---|
private readonly List<MaterialInstance> instances | The material instances, one per renderer passed to the constructor. |
Properties
| Member | What it is |
|---|
int Count { get; } | Number of material instances in the group. |
Methods
| Member | What it is |
|---|
void Dispose() | Disposes every material instance and empties the group. |
IEnumerator<MaterialInstance> GetEnumerator() | Enumerates the material instances. |
1 private and internal method
| Member | What it is |
|---|
private IEnumerator System.Collections.IEnumerable.GetEnumerator() | Enumerates the material instances. |
Used in
Members of other types that take, return or hold a MaterialInstanceGroup: