Class ImageButtonData
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 ImageButtonData : ButtonData, IResettable
Properties
DisplayImage
Image to display.
Declaration
public Sprite DisplayImage { get; protected set; }
Property Value
Type | Description |
---|---|
UnityEngine.Sprite |
Methods
Initialize(Sprite, String, ButtonData.PressedDelegate, String)
Initializes this for use.
Declaration
public void Initialize(Sprite sprite, string text, ButtonData.PressedDelegate callback, string key = "")
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Sprite | sprite | Image to use on the button. |
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. |
ResetState()
Declaration
public override void ResetState()