Skip to main content

WindPattern

A class in Root.Township, the global namespace.

A ScriptableObject holding one wind speed and strength pair, used by the grass and local wind managers.

Constructors​

MemberWhat it is
WindPattern()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private float windSpeedBacking field for WindSpeed.
private float windStrengthBacking field for WindStrength.

Properties​

MemberWhat it is
float WindSpeed { get; }Wind speed.
float WindStrength { get; }Wind strength.

Methods​

MemberWhat it is
void Create(float windSpeed, float windStrength)Sets the speed and strength.

Used in​

Members of other types that take, return or hold a WindPattern: