API (v2.0.0) - Giro3D
    Preparing search index...

    Class PanelAbstract

    Base class for the panels in the inspector.

    Index

    Constructors

    • Parameters

      • parentGui: GUI

        The parent GUI.

      • instance: Instance

        The Giro3D instance.

      • name: string

        The name of the panel.

      Returns Panel

    Properties

    _controllers: Controller[]

    The controllers.

    gui: GUI
    instance: Instance

    Methods

    • Adds a color controller to the panel.

      Type Parameters

      • T extends object
      • K extends string

      Parameters

      • obj: T

        The object.

      • prop: K

        The name of the property.

      Returns TypedController<T[K]>

      The created controller.

    • Adds a (non-color) controller to the panel. See the lil-gui API for more information.

      Type Parameters

      • T extends object
      • K extends string

      Parameters

      • obj: T

        The object.

      • prop: K

        The name of the property.

      • Optional$1: number | object | unknown[]

        Minimum value for number controllers, or the set of selectable values for a dropdown.

      • Optionalmax: number

        Maximum value for number controllers.

      • Optionalstep: number

        Step value for number controllers.

      Returns TypedController<T[K]>

      The created controller.

    • Removes this panel from its parent GUI.

      Returns void

    • Parameters

      • source: unknown = undefined

      Returns void

    • Parameters

      • controller: Controller

      Returns void

    • Updates the panel. You may override this function if the panel has additional work to do. However, updateControllers should still be called to ensure they are up to date.

      Returns void

    • Updates all controllers in this panel with the observed values. This is useful if the value changes from outside the GUI.

      Returns void

    • Updates the values of the controller sources.

      Returns void