Class TextButtonPrefab


Prefab for text buttons in the UI.
  • Field Details

  • Constructor Details

    • TextButtonPrefab

      public TextButtonPrefab()
    • TextButtonPrefab

      public TextButtonPrefab(String text)
  • Method Details

    • setClickCallback

      public void setClickCallback(ButtonNode.ClickCallback callback)
    • apply

      protected void apply(Entity entity)
      Description copied from class: Prefab
      Adds this prefab's predefined components to a given entity and copies values from this prefab.
      Overrides:
      apply in class TextPrefab