Skip to main content

SceneWidgetsAction

A class in Root.Township, Alta.Chunks.

Developer quick access menu action that toggles debug scene widgets. Only shown in dev builds.

Constructors​

MemberWhat it is
SceneWidgetsAction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private bool isActiveBacking field for IsActive.

Properties​

MemberWhat it is
override bool IsActive { get; }Whether the widgets are on.
override bool IsIgnored { get; }True outside dev, so it is hidden.
override bool IsValid { get; }True only in dev.

Methods​

MemberWhat it is
override void Run(Controller controller)Toggles the debug widgets on or off.