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
| Member | What it is |
|---|
UpdateFarClipMenuAction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private bool isIncrease | True to raise the far clip, false to lower it. |
private float timer | Time until which another press counts as quick and doubles the step. |
Properties
| Member | What 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
| Member | What it is |
|---|
override void Run(Controller controller) | Changes the far clip plane and shows the new value as a message. |