Class UIToggleButton
public class UIToggleButton : MonoBehaviour
- Inheritance
-
UIToggleButton
Fields
Field Value
- float
public Color hoverBackgroundTint
Field Value
- Color
Field Value
- float
Properties
public Sprite hoverImage { get; }
Property Value
- Sprite
public bool inToggleGroup { get; }
Property Value
- bool
public Color offBackgroundColour { get; set; }
Property Value
- Color
public Sprite offImage { get; }
Property Value
- Sprite
Property Value
- bool
public Color onBackgroundColour { get; set; }
Property Value
- Color
public Sprite onImage { get; }
Property Value
- Sprite
public Color pressedBackgroundColour { get; set; }
Property Value
- Color
public Sprite pressedImage { get; }
Property Value
- Sprite
public UIToggleGroup toggleGroup { get; }
Property Value
- UIToggleGroup
public string toggleName { get; set; }
Property Value
- string
Methods
public void JoinToggleGroup(UIToggleGroup toggleGroup)
Parameters
toggleGroup
UIToggleGroup
public void LeaveToggleGroup()
public void SetImages(Sprite offImage, Sprite onImage, Sprite hoverImage, Sprite pressedImage)
Parameters
offImage
Sprite
onImage
Sprite
hoverImage
Sprite
pressedImage
Sprite
public void SetOnOff(bool on)
Parameters
on
bool
SetText(string)
public void SetText(string text)
Parameters
text
string
SetTextAlignment(TextAnchor)
public void SetTextAlignment(TextAnchor textAlignment)
Parameters
textAlignment
TextAnchor
public void SubscribeToHover(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToLeftClick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToRightClick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToTurnOff(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToTurnOn(UnityAction call)
Parameters
call
UnityAction
public void UpdateDisplay()