ドキュメント

Unity Engine

Unity Engine

Directional

Wind zone affects the entire Scene in one direction.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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