From ec31c8b5d6148567965487573da23866bb49a2d9 Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Sun, 12 Mar 2017 10:45:39 +0000 Subject: [PATCH] Moved Initialize from Start to Awake to resolve #126 --- Scripts/Effects/Gradient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }