Class ButtonData
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GameKit.Dependencies.Utilities.Types.CanvasContainers
Assembly: GameKit.Dependencies.dll
Syntax
public class ButtonData : IResettable
Properties
Key
Optional key to include within the callback.
Declaration
public string Key { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Text
Text to place on the button.
Declaration
public string Text { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Initialize(String, ButtonData.PressedDelegate, String)
Initializes this for use.
Declaration
public void Initialize(string text, ButtonData.PressedDelegate callback, string key = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to display on the button. |
ButtonData.PressedDelegate | callback | Callback when OnPressed is called. |
System.String | key | Optional key to include within the callback. |
InitializeState()
Declaration
public void InitializeState()
OnPressed()
Called whewn the button for this data is pressed.
Declaration
public virtual void OnPressed()
ResetState()
Declaration
public virtual void ResetState()