Skip to main content

StaticBoundsOverride

A class in Root.Township, the global namespace.

Fixed bounds for a prefab. GetPointerBounds uses it instead of measuring renderers and colliders.

Constructors​

MemberWhat it is
StaticBoundsOverride()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private Bounds boundsBacking field for Bounds.
private bool btnResetInspector button that calls Reset.

Properties​

MemberWhat it is
Bounds Bounds { get; }The override bounds.

Methods​

2 private and internal methods
MemberWhat it is
private void OnDrawGizmosSelected()Draws the bounds as a wire box.
private void Reset()Sets the bounds from the object's renderers.