Skip to main content

AdminTool

An abstract class in Root.Township, the global namespace.

Base for tools that are only active for logged-in users with the debug_features permission.

Constructors​

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

Methods​

MemberWhat it is
protected override void LoggedIn()Activates the tool if the user has debug_features.
protected override void LoggedOut()Deactivates the tool.
protected abstract void SetActive(bool isActive)Implemented by subclasses to show or hide the tool.
protected override void Start()Starts the tool deactivated.