using System; using UnityEngine; [Serializable] public class ObstructionTextureSettings { public enum setRate { Half = 0, Full = 1 } public Texture2D ObstructionTexture; [Tooltip("Whether to scan in the obstruction texture and set obstructions.")] public bool ObstructionTexturesEnabled; [Tooltip("How often to apply obstructions. Half speed has better performance but may not look as good in some situations.")] public setRate SetRate; [Tooltip("ReScans the Obstruction texture. This is needed for changes in image and GrayScaleCuttoff to take effect.")] public bool ReScan; [Tooltip("The grayscale value of a pixel necessary for it to count as an obstruction.")] [Range(0f, 0.99f)] public float GrayScaleCuttoff = 0.5f; public bool useAppearanceModifiers; [Tooltip("These settings CAN be changed in real time..")] public Appearance Appearance; }