기술 자료

Unity Engine

Unity Engine

Directional

Wind zone affects the entire Scene in one direction.
읽는 시간 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); }}