Beamable SDK
Public Member Functions | List of all members
Beamable.Editor.ToolbarExtender.SampleBeamableButton Class Reference

A sample button that can be used as a reference to understand how to extend the Unity editor's toolbar.
More...

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

Public Member Functions

override bool ShouldDisplayButton (BeamEditorContext editorAPI)
 
override void OnButtonClicked (BeamEditorContext editorAPI)
 
override GenericMenu GetDropdownOptions (BeamEditorContext editorAPI)
 Override when you want to make a dropdown menu. More...
 
- Public Member Functions inherited from Beamable.Editor.ToolbarExtender.BeamableToolbarButton
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)
 

Additional Inherited Members

- Public Types inherited from Beamable.Editor.ToolbarExtender.BeamableToolbarButton
enum  Side { Left , Right }
 

Detailed Description

A sample button that can be used as a reference to understand how to extend the Unity editor's toolbar.

Member Function Documentation

◆ GetDropdownOptions()

override GenericMenu Beamable.Editor.ToolbarExtender.SampleBeamableButton.GetDropdownOptions ( BeamEditorContext  editorAPI)
inlinevirtual

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 from Beamable.Editor.ToolbarExtender.BeamableToolbarButton.

◆ OnButtonClicked()

override void Beamable.Editor.ToolbarExtender.SampleBeamableButton.OnButtonClicked ( BeamEditorContext  editorAPI)
virtual

◆ ShouldDisplayButton()

override bool Beamable.Editor.ToolbarExtender.SampleBeamableButton.ShouldDisplayButton ( BeamEditorContext  editorAPI)
virtual

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