Skip to content

API > WindZone


WindZone⚓︎

WindZone inherits from Component

Wind Zones add realism to the trees you create by making them wave their branches and leaves as if blown by the wind.

Members⚓︎

Properties⚓︎

Name Description
WindZone.modeProperty Defines the type of wind zone to be used (Spherical or Directional).
WindZone.radiusProperty Radius of the Spherical Wind Zone (only active if the WindZoneMode is set to Spherical).
WindZone.windMainProperty The primary wind force. It produces a softly changing wind Pressure.
WindZone.windPulseFrequencyProperty Defines the frequency of the wind changes.
WindZone.windPulseMagnitudeProperty Defines how much the wind changes over time.
WindZone.windTurbulenceProperty The turbulence wind force. Produces a rapidly changing wind pressure.

Inherited Members⚓︎

Inherited Properties⚓︎

Name Description
WindZone.gameObjectPropertyReadonly Property The game object this component is attached to. A component is always attached to a game object.
WindZone.tagPropertyReadonly Property The tag of this game object.
WindZone.transformPropertyReadonly Property The Transform attached to this GameObject.
WindZone.hideFlagsProperty Should the object be hidden, saved with the Scene or modifiable by the user?
WindZone.nameProperty The name of the object.

Inherited Methods⚓︎

Name Description
WindZone.BroadcastMessage(methodName, parameter=nil)Method Calls the method named methodName on every Lua Script in this game object or any of its children.
WindZone.CompareTag(tag)Method Is this game object tagged with tag ?
WindZone.GetAllLuaScripts()Method Returns an array of all Lua scripts that attached to the game object.
WindZone.GetComponent(type)Method Returns the component of Type type if the game object has one attached, nil if it doesn't.
WindZone.GetComponentInChildren(t)Method Returns the component of Type type in the GameObject or any of its children using depth first search.
WindZone.GetComponentInParent(t)Method Returns the component of Type type in the GameObject or any of its parents.
WindZone.GetComponents(type)Method Returns all components of Type type in the GameObject.
WindZone.GetComponentsInChildren(t)Method Returns all components of Type type in the GameObject or any of its children.
WindZone.GetComponentsInParent(t)Method Returns all components of Type type in the GameObject or any of its parents.
WindZone.SendMessage(methodName, value=nil)Method Calls the method named methodName on every Lua Script in this game object.
WindZone.SendMessageUpwards(methodName, value=nil)Method Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour.
WindZone.TryGetComponent(type)Method Gets the component of the specified type, if it exists.
WindZone.GetInstanceID()Method Returns the instance id of the object.