Version: 2021.3
public float radius ;

描述

球形风区的半径(仅在 WindZoneMode 设置为 Spherical 时有效)。

// Creates a Spherical Wind Zone and sets its radius to 10.
using UnityEngine;

public class ExampleScript : MonoBehaviour { void Start() { var wind = gameObject.AddComponent<WindZone>(); wind.mode = WindZoneMode.Spherical; wind.radius = 10f; } }