风区影响整个场景的一个方向。
// 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); } }