Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Directional

Wind zone affects the entire Scene in one direction.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.WindModule
Directional = 0

Examples

// 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); }}