Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

WindZoneMode.Directional

Description

Wind zone affects the entire Scene in one direction.

// Creates a Directional Wind Zone that blows wind up.
using UnityEngine;

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

Did you find this page useful? Please give it a rating: