Class BuildSlotAuthoring
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
Scene authoring for a construction slot. The rally point is stored as an offset from the slot.
[AddComponentMenu("2D Tower Defense Maker/Build Slot Authoring")]
public sealed class BuildSlotAuthoring : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourBuildSlotAuthoring
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.CompareTag(TagHandle)Component.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Constructors
BuildSlotAuthoring()
public BuildSlotAuthoring()
Fields
previewRange
Optional preview range drawn as an ellipse in the scene view.
[Min(0)]
public float previewRange
Field Value
previewRangeYScale
Range Y scale used for the preview ellipse (vertical semi-axis = range × scale, see RangeShape).
[Min(0.01)]
public float previewRangeYScale
Field Value
previewTower
Editor preview only: tower whose attack range and rally radius are drawn around this slot.
public TowerAsset previewTower
Field Value
rallyOffset
Default barracks rally point, relative to the slot position.
public Vector2 rallyOffset
Field Value
- Vector2
Properties
Position
Slot position in world space.
public Vector2 Position { get; }
Property Value
- Vector2
RallyPoint
Rally point in world space.
public Vector2 RallyPoint { get; set; }
Property Value
- Vector2
Methods
ToData()
Creates slot data.
public BuildSlotData ToData()