Skip to main content

MaterialInstanceGroup

A class in Root.Township, Alta.Rendering.

Makes a MaterialInstance for each of a set of renderers and disposes them together.

Constructors​

MemberWhat it is
MaterialInstanceGroup(IEnumerable<Renderer> renderers)Creates a MaterialInstanceGroup from renderers.

Fields​

1 private and internal field
MemberWhat it is
private readonly List<MaterialInstance> instancesThe material instances, one per renderer passed to the constructor.

Properties​

MemberWhat it is
int Count { get; }Number of material instances in the group.

Methods​

MemberWhat it is
void Dispose()Disposes every material instance and empties the group.
IEnumerator<MaterialInstance> GetEnumerator()Enumerates the material instances.
1 private and internal method
MemberWhat 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: