예제 #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();
        }
예제 #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();
        }
예제 #3
0
 public void Unregister(OutlineData outlineData)
 {
     Unregister(outlineData.parent);
 }