文档

Unity Engine


User Manual

Script Reference

Unity Engine


Directional

Wind zone affects the entire Scene in one direction.
阅读时间1 分钟最后更新于 21 天前

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