Skip to main content

ToggleLiveDataDisplayMenuAction

A class in Root.Township, Alta.QuickAccessActions.

Quick access action that toggles the FPS readout on the player camera's LiveDataDisplayView. Client only.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private LiveDataDisplayView liveDataDisplayThe display found on the player camera.

Properties​

MemberWhat it is
override bool IsActive { get; }True while the live data display is enabled.
override bool IsValid { get; }Always true.

Methods​

MemberWhat it is
override void Run(Controller controller)Finds the display on the camera the first time, then toggles its FPS readout.