Skip to main content

SceneViewVisualizer

A class in Root.Township, the global namespace.

Editor helper that draws a sphere or an axis gizmo at its transform in the scene view.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private Color gizmosColorSphere colour. Default black.
private bool isActiveWhether to draw anything. Default true.
private bool isDrawingAsAxisDraws the transform's axes instead of a sphere.
private float sizeSphere radius. Default 0.05.

Methods​

1 private and internal method
MemberWhat it is
private void OnDrawGizmos()Draws red, green and blue axis rays, or a coloured sphere, if active.