Search Results for

    Show / Hide Table of Contents

    Class WorldSpaceBackgroundUIHandler

    Controls the background grid (with the grid coordinates).

    Inheritance
    object
    WorldSpaceBackgroundUIHandler
    Namespace: AS2.UI
    Assembly: .dll
    Syntax
    public class WorldSpaceBackgroundUIHandler : MonoBehaviour

    Constructors

    | Edit this page View Source

    WorldSpaceBackgroundUIHandler()

    Declaration
    public WorldSpaceBackgroundUIHandler()

    Fields

    | Edit this page View Source

    activeCameraRotation

    Declaration
    private float activeCameraRotation
    Field Value
    Type Description
    float
    | Edit this page View Source

    activeRect

    Declaration
    private CellRect activeRect
    Field Value
    Type Description
    CellRect
    | Edit this page View Source

    go_worldSpaceBackgroundUI

    Declaration
    public GameObject go_worldSpaceBackgroundUI
    Field Value
    Type Description
    GameObject
    | Edit this page View Source

    instance

    Declaration
    public static WorldSpaceBackgroundUIHandler instance
    Field Value
    Type Description
    WorldSpaceBackgroundUIHandler
    | Edit this page View Source

    isActive

    Declaration
    private bool isActive
    Field Value
    Type Description
    bool
    | Edit this page View Source

    uiElements

    Declaration
    private List<GameObject> uiElements
    Field Value
    Type Description
    List<GameObject>
    | Edit this page View Source

    uiElementsActive

    Declaration
    private bool uiElementsActive
    Field Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    IsActive()

    Checks if the grid is active.

    Declaration
    public bool IsActive()
    Returns
    Type Description
    bool

    true if and only if the grid is currently active.

    | Edit this page View Source

    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.

    | Edit this page View Source

    ToggleBackgroundGrid()

    Toggles the background grid on/off. Camera movements are disabled while the grid is toggled on.

    Declaration
    public void ToggleBackgroundGrid()
    | Edit this page View Source

    Update()

    Declaration
    public void Update()
    | Edit this page View Source

    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()
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX