Bitbybit Docs
    Preparing search index...

    Class BabylonGuiContainer

    What every container control shares: adding child controls, a background color and the read-only state. Stack panels are containers, and so is the root of a GUI texture.

    Index

    Constructors

    controls

    • Adds controls to a container in the given order; with clearControlsFirst true the container is emptied first, so the order is exactly the list's.

      Parameters

      Returns Container

      The same container

      bitbybit.babylon.gui.container.addControls({ container: panel, controls: [title, slider, button], clearControlsFirst: true });
      

    get

    • Reads the background color of a container as a CSS color string.

      Parameters

      Returns string

      The background color

    • Reads whether a container and its children are read-only.

      Parameters

      Returns boolean

      True when the container is read-only

    set

    • Sets the background color of a container as a CSS color; an eight-digit hex such as #00000055 makes it translucent.

      Parameters

      Returns Container

      The same container

    • Makes a container and everything in it read-only or editable again.

      Parameters

      Returns Container

      The same container