Class WorldSpaceBackgroundUIHandler
Controls the background grid (with the grid coordinates).
Inheritance
WorldSpaceBackgroundUIHandler
Namespace: AS2.UI
Assembly: .dll
Syntax
public class WorldSpaceBackgroundUIHandler : MonoBehaviour
Constructors
WorldSpaceBackgroundUIHandler()
Declaration
public WorldSpaceBackgroundUIHandler()
Fields
activeCameraRotation
Declaration
private float activeCameraRotation
Field Value
activeRect
Declaration
private CellRect activeRect
Field Value
go_worldSpaceBackgroundUI
Declaration
public GameObject go_worldSpaceBackgroundUI
Field Value
Type |
Description |
GameObject |
|
instance
Declaration
public static WorldSpaceBackgroundUIHandler instance
Field Value
isActive
Declaration
Field Value
uiElements
Declaration
private List<GameObject> uiElements
Field Value
Type |
Description |
List<GameObject> |
|
uiElementsActive
Declaration
private bool uiElementsActive
Field Value
Methods
IsActive()
Checks if the grid is active.
Declaration
Returns
Type |
Description |
bool |
true if and only if the grid is currently active.
|
SetCameraRotation(float)
Updates the background grid camera rotation.
Declaration
public void SetCameraRotation(float rotationDegrees)
Parameters
Type |
Name |
Description |
float |
rotationDegrees |
The camera rotation in degrees.
|
ToggleBackgroundGrid()
Toggles the background grid on/off.
Camera movements are disabled while the grid is toggled on.
Declaration
public void ToggleBackgroundGrid()
Update()
Declaration
UpdateSystem()
Updates the background grid. Call this once per frame.
Note: This method only takes a lot of time if the system is displayed and the camera changes, so everything is regenerated.
Recommendation: Disable camera movement if this is active.
Declaration
public void UpdateSystem()