Class ColorableGraphic
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
Transition data for a UnityEngine.UI.Graphic using a SelectionColorBlock across selection states.
[Serializable]
public class ColorableGraphic : SelectableTransitionData<SelectionColorBlock, Color>, ITargetGraphic
- Inheritance
-
objectColorableGraphic
- Implements
- Inherited Members
Fields
Colors
Color block defining colors and timings per selection state.
public SelectionColorBlock Colors
Field Value
Properties
Image
Convenience function that converts the referenced Graphic to a Image, if possible.
public Image Image { get; set; }
Property Value
- Image
SelectableStates
public override ISelectableStates<Color> SelectableStates { get; }
Property Value
- ISelectableStates<Color>
TargetGraphic
The target graphic affected by color transitions.
public Graphic TargetGraphic { get; set; }
Property Value
- Graphic
Events
OnSetProperty
public event Action OnSetProperty
Event Type
- Action