using System; using UnityEngine; [Serializable] public class ObstructionSettings { public enum setRate { Half = 0, Full = 1 } [Tooltip("Whether to check for and set obstructions.")] public bool ObstructionsEnabled = true; [Tooltip("How high above the plane to raycast down to detect obstructions. May need to lower if you have a roof above the plane")] [Range(1f, 1000f)] public float heightCuttoff = 25f; [Tooltip("How often to apply obstructions. Half speed has better performance but may not look as good in some situations.")] public setRate SetRate; }