From 49806ebb441a04c77d13900b18bc0ce35cd57345 Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Mon, 6 Mar 2017 16:24:47 +0000 Subject: [PATCH] Fix to Primitive Base to ensure the control is redrawn when it's enabled, resolves #116 --- Scripts/Primitives/UIPrimitiveBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Scripts/Primitives/UIPrimitiveBase.cs b/Scripts/Primitives/UIPrimitiveBase.cs index 8c42f77..79b9834 100644 --- a/Scripts/Primitives/UIPrimitiveBase.cs +++ b/Scripts/Primitives/UIPrimitiveBase.cs @@ -212,6 +212,12 @@ namespace UnityEngine.UI.Extensions #endregion + #region onEnable + protected override void OnEnable() + { + SetAllDirty(); + } + #endregion } }