Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WindZoneMode.Directional

Description

Wind zone affects the entire scene in one direction.

// Creates a Directional Wind Zone that blows wind up.

void Start() { var wind = gameObject.AddComponent<WindZone>(); wind.mode = WindZoneMode.Directional; transform.rotation = Quaternion.LookRotation(Vector3.up); }