//////////////////////////////////////////////////////////////////////////
        public override void Init(UITMPLinkTooltip owner, TextMeshProUGUI text)
        {
            hideFlags          = HideFlags.HideInInspector;
            m_UITMPLinkTooltip = owner;
            m_Text             = text;
            if (m_Text == null)
            {
                m_Text = GetComponent <TextMeshProUGUI>();
            }

            var canvas = m_Text.canvas;

            m_Camera = canvas != null
                ? canvas.renderMode == RenderMode.ScreenSpaceOverlay ? null : global::Core.Core.Instance.Camera
                : global::Core.Core.Instance.Camera;
        }
Exemple #2
0
 public abstract void Init(UITMPLinkTooltip owner, TextMeshProUGUI text);