Example #1
0
        public void Register(OutlineData outlineData)
        {
            if (outlineData.renderers == null || outlineData.renderers.Length == 0)
            {
                return;
            }

            if (m_outlineDatas.Contains(outlineData))
            {
                return;
            }

            m_outlineDatas.Add(outlineData);
            UpdateOutlineActive();
        }
Example #2
0
        public void Register(OutlineData outlineData)
        {
            if (outlineData.renderers == null || outlineData.renderers.Length == 0)
            {
                return;
            }

            for (int i = 0, count = m_outlineDatas.Count; i < count; i++)
            {
                if (m_outlineDatas[i].parent == outlineData.parent)
                {
                    m_outlineDatas[i] = outlineData;
                    break;
                }
            }
            
            m_outlineDatas.Add(outlineData);
            UpdateActive();
        }
Example #3
0
 public void Unregister(OutlineData outlineData)
 {
     Unregister(outlineData.parent);
 }