Version: 2021.1

描述

风区在一个方向上影响整个场景。

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