using System.Collections; using System.Collections.Generic; using UnityEngine; public class TestInit : MonoBehaviour { [Header("外发光颜色")] public Color loadOutLineColor; // Start is called before the first frame update void Start() { Outline triggerLine = this.gameObject.AddComponent(); triggerLine.OutlineColor = loadOutLineColor; triggerLine.OutlineWidth = 3; triggerLine.enabled = true; } // Update is called once per frame void Update() { } }