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