yyl
2025-07-18 cc074976c8644508d80abafbfa8de5d31146abdf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using UnityEngine.UI;
using UnityEngine;
using System;
 
public class OutlineColor : Outline
{
    [Header("扩展Outline增加颜色选择")]
    [SerializeField][HideInInspector]
    QualityTextColType m_ColorType = QualityTextColType.None;
    public QualityTextColType colorType
    {
        get { return m_ColorType; }
        set
        {
            if (m_ColorType != value)
            {
                m_ColorType = value;
                this.effectColor = UIHelper.GetUIOutlineColor(value);
            }
        }
    }
 
    [SerializeField][HideInInspector]
    Vector2 m_EffectDistanceEx = new Vector2(1.5f, -1.5f);
    public Vector2 effectDistanceEx
    {
        get { return m_EffectDistanceEx; }
        set
        {
            if (m_EffectDistanceEx != value)
            { 
                m_EffectDistanceEx = value;
                effectDistance = value;
            }
        }
    }
 
 
 
 
    protected override void Awake()
    {
        this.effectDistance = m_EffectDistanceEx;
        this.effectColor = UIHelper.GetUIOutlineColor(colorType);
    }
 
 
}