using System; using UnityEngine; [Serializable] public class MegaVolume { public bool enabled = true; public float weight = 1f; public string name = "None"; public Color regcol = Color.yellow; public Vector3 origin = Vector3.zero; public Vector3 boxsize = Vector3.one; public float falloff = 1f; public MegaVolumeType volType = MegaVolumeType.Sphere; public float radius = 1f; public bool uselimits; public Vector3 size = Vector3.zero; public Transform target; public MegaVolume() { falloff = 1f; enabled = true; weight = 1f; name = "None"; uselimits = false; } public static MegaVolume Create() { return new MegaVolume(); } }