TestOutLine.cs 444 B

12345678910111213141516
  1. using EPOOutline;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class TestOutLine : MonoBehaviour
  6. {
  7. [ContextMenu("添加outline")]
  8. public void AddOutLinable()
  9. {
  10. Outlinable outlinable= this.gameObject.AddComponent<Outlinable>();
  11. outlinable.AddAllChildRenderersToRenderingList();
  12. OutLineManager.Instance.ResetOutLinableByType(outlinable, OutLineType.hint);
  13. }
  14. }