Table of Contents

Method RemoveInstances

Namespace
Pinwheel.Griffin
Assembly
Pinwheel.Polaris.Runtime.dll

RemoveInstances(Predicate<GGrassInstance>)

Remove grass instances from this patch that match a condition. It's recommended to use Polaris.RemoveGrassInstances() instead.

public int RemoveInstances(Predicate<GGrassInstance> match)

Parameters

match Predicate<GGrassInstance>

The condition to test against every instances. An instance will be removed if condition returns true.

Returns

int

Number of removed instances.