Class PuddlePopulator
- Namespace
- DFA.PuddlecraftEditor
Scatters puddle splats over ground renderers, the same as the Populate Puddles window, for setup scripts.
public static class PuddlePopulator
- Inheritance
-
PuddlePopulator
Methods
Populate(IReadOnlyList<Renderer>, Settings, out string)
Places puddles on the flat, rain-exposed spots of the given renderers, more often on low spots, with undo. Creates a controller if there isn't one, except in Prefab Mode, where it places nothing without one.
public static int Populate(IReadOnlyList<Renderer> targets, PuddlePopulator.Settings settings, out string message)
Parameters
targetsIReadOnlyList<Renderer>The ground renderers to put puddles on.
settingsPuddlePopulator.SettingsHow puddles are scattered.
messagestringWhy nothing was placed, or null.
Returns
- int
The number of puddles placed.