YiHe_AllVersion/YHWeb/Assets/3rdPlugins/HighlightingSystemDemo/Scripts/Advanced/HighlighterConstant.cs

26 lines
407 B
C#

using UnityEngine;
using System.Collections;
public class HighlighterConstant : HighlighterInteractive
{
public Color color = Color.cyan;
#region MonoBehaviour
//
protected override void OnEnable()
{
base.OnEnable();
h.ConstantOnImmediate(color);
}
//
protected override void OnValidate()
{
base.OnValidate();
if (h != null)
{
h.ConstantOnImmediate(color);
}
}
#endregion
}