Skip to main content

ToggleRuntimeConsole

A class in Root.Township, Alta.QuickAccessActions.

Developer quick access action that shows or hides a runtime console in front of the player. Client only.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private RuntimeConsole consolePrefabPrefab for the console.
private RuntimeConsole runtimeConsoleThe created console.

Properties​

MemberWhat it is
override bool IsActive { get; }True while the console is shown.
override bool IsValid { get; }Always true.

Methods​

MemberWhat it is
void InitConsole()Creates the console from the prefab the first time, hidden.
override void Run(Controller controller)Creates the console if needed, moves it in front of the head and toggles it.
void UpdateConsolePosition(Controller controller)Puts the console 0.5 m in front of the head, facing the same way.