Skip to main content

UpdateFarClipMenuAction

A class in Root.Township, Alta.QuickAccessActions.

Debug quick access action that raises or lowers the player camera's far clip plane by 10 (20 if pressed again within a second). Client only.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private bool isIncreaseTrue to raise the far clip, false to lower it.
private float timerTime until which another press counts as quick and doubles the step.

Properties​

MemberWhat it is
override bool IsActive { get; }Always false.
override bool IsValid { get; }Raise: while far clip is under 800. Lower: while it is more than 10 past the near clip.

Methods​

MemberWhat it is
override void Run(Controller controller)Changes the far clip plane and shows the new value as a message.