Merged in fix/StepperWarnings (pull request #134)

Fixed issue with SendMessage events raised by the Stepper control
pull/413/head
Simon Jackson 2022-04-23 20:25:23 +00:00
commit 711ee02cb3
1 changed files with 1 additions and 22 deletions

View File

@ -9,6 +9,7 @@ using UnityEngine.EventSystems;
namespace UnityEngine.UI.Extensions
{
// Stepper control
[ExecuteInEditMode]
[AddComponentMenu("UI/Extensions/Stepper")]
[RequireComponent(typeof(RectTransform))]
public class Stepper : UIBehaviour
@ -89,28 +90,6 @@ namespace UnityEngine.UI.Extensions
protected Stepper()
{ }
#if UNITY_EDITOR
protected override void OnValidate()
{
base.OnValidate();
RecreateSprites(sides);
if (separator)
LayoutSides();
if (!wrap)
{
DisableAtExtremes(sides);
}
}
#endif
protected override void Start()
{
if (isActiveAndEnabled)
StartCoroutine(DelayedInit());
}
protected override void OnEnable()
{
StartCoroutine(DelayedInit());