parent
3d8f11ba82
commit
af5f7e90b0
|
@ -25,6 +25,7 @@ namespace Coffee.UIExtensions
|
||||||
private static readonly List<UIParticle> s_TempParents = new List<UIParticle>();
|
private static readonly List<UIParticle> s_TempParents = new List<UIParticle>();
|
||||||
private static readonly List<UIParticle> s_TempChildren = new List<UIParticle>();
|
private static readonly List<UIParticle> s_TempChildren = new List<UIParticle>();
|
||||||
|
|
||||||
|
private SerializedProperty _spMaskable;
|
||||||
private SerializedProperty _spScale;
|
private SerializedProperty _spScale;
|
||||||
private SerializedProperty _spIgnoreCanvasScaler;
|
private SerializedProperty _spIgnoreCanvasScaler;
|
||||||
private SerializedProperty _spAnimatableProperties;
|
private SerializedProperty _spAnimatableProperties;
|
||||||
|
@ -52,6 +53,7 @@ namespace Coffee.UIExtensions
|
||||||
protected override void OnEnable()
|
protected override void OnEnable()
|
||||||
{
|
{
|
||||||
base.OnEnable();
|
base.OnEnable();
|
||||||
|
_spMaskable = serializedObject.FindProperty("m_Maskable");
|
||||||
_spScale = serializedObject.FindProperty("m_Scale3D");
|
_spScale = serializedObject.FindProperty("m_Scale3D");
|
||||||
_spIgnoreCanvasScaler = serializedObject.FindProperty("m_IgnoreCanvasScaler");
|
_spIgnoreCanvasScaler = serializedObject.FindProperty("m_IgnoreCanvasScaler");
|
||||||
_spAnimatableProperties = serializedObject.FindProperty("m_AnimatableProperties");
|
_spAnimatableProperties = serializedObject.FindProperty("m_AnimatableProperties");
|
||||||
|
@ -127,6 +129,9 @@ namespace Coffee.UIExtensions
|
||||||
|
|
||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
|
|
||||||
|
// Maskable
|
||||||
|
EditorGUILayout.PropertyField(_spMaskable);
|
||||||
|
|
||||||
// IgnoreCanvasScaler
|
// IgnoreCanvasScaler
|
||||||
using (var ccs = new EditorGUI.ChangeCheckScope())
|
using (var ccs = new EditorGUI.ChangeCheckScope())
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,6 +38,11 @@ namespace Coffee.UIExtensions
|
||||||
[Tooltip("Particles")] [SerializeField]
|
[Tooltip("Particles")] [SerializeField]
|
||||||
private List<ParticleSystem> m_Particles = new List<ParticleSystem>();
|
private List<ParticleSystem> m_Particles = new List<ParticleSystem>();
|
||||||
|
|
||||||
|
#if !UNITY_2019_4_OR_NEWER
|
||||||
|
[SerializeField]
|
||||||
|
private bool m_Maskable = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
private bool _shouldBeRemoved;
|
private bool _shouldBeRemoved;
|
||||||
private DrivenRectTransformTracker _tracker;
|
private DrivenRectTransformTracker _tracker;
|
||||||
private Mesh _bakedMesh;
|
private Mesh _bakedMesh;
|
||||||
|
@ -350,6 +355,9 @@ namespace Coffee.UIExtensions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void OnEnable()
|
protected override void OnEnable()
|
||||||
{
|
{
|
||||||
|
#if !UNITY_2019_4_OR_NEWER
|
||||||
|
maskable = m_Maskable;
|
||||||
|
#endif
|
||||||
_cachedPosition = transform.localPosition;
|
_cachedPosition = transform.localPosition;
|
||||||
activeMeshIndices.Clear();
|
activeMeshIndices.Clear();
|
||||||
|
|
||||||
|
@ -440,6 +448,9 @@ namespace Coffee.UIExtensions
|
||||||
SetVerticesDirty();
|
SetVerticesDirty();
|
||||||
m_ShouldRecalculateStencil = true;
|
m_ShouldRecalculateStencil = true;
|
||||||
RecalculateClipping();
|
RecalculateClipping();
|
||||||
|
#if !UNITY_2019_4_OR_NEWER
|
||||||
|
maskable = m_Maskable;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ISerializationCallbackReceiver.OnBeforeSerialize()
|
void ISerializationCallbackReceiver.OnBeforeSerialize()
|
||||||
|
|
Loading…
Reference in New Issue