/// <summary> /// hooks up the component object as the inspector target /// </summary> public virtual void OnEnable() { m_Component = (vp_UIAnchor)target; if(m_Component.Manager == null) m_Component.Manager = m_Component.transform.root.GetComponent<vp_UIManager>(); m_Component.Manager.ForceUIRefresh(); m_OldSide = m_Component.Side; }
/// <summary> /// hooks up the component object as the inspector target /// </summary> public virtual void OnEnable() { m_Component = (vp_UIAnchor)target; if (m_Component.Manager == null) { m_Component.Manager = m_Component.transform.root.GetComponent <vp_UIManager>(); } m_Component.Manager.ForceUIRefresh(); m_OldSide = m_Component.Side; }