Beamable SDK
Public Types | Public Member Functions | List of all members
Beamable.Editor.ToolbarExtender.BeamableToolbarButton Class Referenceabstract

Scriptable object that gets loaded from CoreConfiguration.BeamableAssistantToolbarButtonsPathss when the BeamableToolbarExtender initializes or one of these is re-imported. More...

Inheritance diagram for Beamable.Editor.ToolbarExtender.BeamableToolbarButton:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Editor.ToolbarExtender.BeamableToolbarButton:
Collaboration graph
[legend]

Public Types

enum  Side { Left , Right }
 

Public Member Functions

abstract void OnButtonClicked (BeamEditorContext editorAPI)
 
virtual bool ShouldDisplayButton (BeamEditorContext editorAPI)
 
virtual Side GetButtonSide (BeamEditorContext editorAPI)
 
virtual int GetButtonOrder (BeamEditorContext editorAPI)
 
virtual string GetButtonText (BeamEditorContext editorAPI)
 
virtual Vector2 GetButtonSize (BeamEditorContext editorAPI)
 
virtual Texture GetButtonTexture (BeamEditorContext editorAPI)
 
virtual GenericMenu GetDropdownOptions (BeamEditorContext editorAPI)
 Override when you want to make a dropdown menu. More...
 

Detailed Description

Scriptable object that gets loaded from CoreConfiguration.BeamableAssistantToolbarButtonsPathss when the BeamableToolbarExtender initializes or one of these is re-imported.

These can be used to add buttons to Unity's play-mode toolbar, either to the left or right of them (see BeamableToolbarExtender).

Member Function Documentation

◆ GetDropdownOptions()

virtual GenericMenu Beamable.Editor.ToolbarExtender.BeamableToolbarButton.GetDropdownOptions ( BeamEditorContext  editorAPI)
virtual

Override when you want to make a dropdown menu.

Parameters
editorAPIThe current initialized BeamEditorContext instance.
Returns
A built generic menu to be displayed when the button is clicked. Or null, if you want the button to behave like a regular button.

Reimplemented in Beamable.Editor.ToolbarExtender.SampleBeamableButton.


The documentation for this class was generated from the following file: