Class RainPreset
- Namespace
- DFA.Puddlecraft
The look of the rain: puddles, wet surfaces, and the falling rain and spout water (the particle prefabs, and how the rain falls). Create one with Create > Puddlecraft > Rain Preset and assign it to the controller.
The controller holds the weather itself (how hard it rains, how fast puddles fill) and the bakes; the wind comes from the scene's Wind Zone.
[CreateAssetMenu(menuName = "Puddlecraft/Rain Preset", fileName = "rain-preset", order = 400)]
[Icon("Packages/com.dfa.puddlecraft/editor/icons/puddlecraft.png")]
public sealed class RainPreset : ScriptableObject
- Inheritance
-
RainPreset
Properties
puddles
How puddles and standing water look.
public PuddleLook puddles { get; }
Property Value
rainfall
The falling rain and spout water: their particle prefabs, and how the rain falls.
public RainfallSettings rainfall { get; }
Property Value
surfaces
How rain wets surfaces open to the sky.
public SurfaceWetnessSettings surfaces { get; }