diff --git a/Scripts/Effects/Gradient.cs b/Scripts/Effects/Gradient.cs index 9fb93ee..a34839b 100644 --- a/Scripts/Effects/Gradient.cs +++ b/Scripts/Effects/Gradient.cs @@ -15,7 +15,7 @@ namespace UnityEngine.UI.Extensions public Color vertex2 = Color.black; private Graphic targetGraphic; - protected override void Start() + protected override void Awake() { targetGraphic = GetComponent(); }