72 lines
1.6 KiB
C#
72 lines
1.6 KiB
C#
using System;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace UnityEngine.UI
|
|
{
|
|
// Token: 0x020000AA RID: 170
|
|
[ExecuteInEditMode]
|
|
public abstract class BaseMeshEffect : UIBehaviour, IMeshModifier
|
|
{
|
|
// Token: 0x1700019B RID: 411
|
|
// (get) Token: 0x06000619 RID: 1561 RVA: 0x0001E574 File Offset: 0x0001C974
|
|
protected Graphic graphic
|
|
{
|
|
get
|
|
{
|
|
if (this.m_Graphic == null)
|
|
{
|
|
this.m_Graphic = base.GetComponent<Graphic>();
|
|
}
|
|
return this.m_Graphic;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600061A RID: 1562 RVA: 0x0001E5AC File Offset: 0x0001C9AC
|
|
protected override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
if (this.graphic != null)
|
|
{
|
|
this.graphic.SetVerticesDirty();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600061B RID: 1563 RVA: 0x0001E5D1 File Offset: 0x0001C9D1
|
|
protected override void OnDisable()
|
|
{
|
|
if (this.graphic != null)
|
|
{
|
|
this.graphic.SetVerticesDirty();
|
|
}
|
|
base.OnDisable();
|
|
}
|
|
|
|
// Token: 0x0600061C RID: 1564 RVA: 0x0001E5F6 File Offset: 0x0001C9F6
|
|
protected override void OnDidApplyAnimationProperties()
|
|
{
|
|
if (this.graphic != null)
|
|
{
|
|
this.graphic.SetVerticesDirty();
|
|
}
|
|
base.OnDidApplyAnimationProperties();
|
|
}
|
|
|
|
// Token: 0x0600061D RID: 1565 RVA: 0x0001E61C File Offset: 0x0001CA1C
|
|
public virtual void ModifyMesh(Mesh mesh)
|
|
{
|
|
using (VertexHelper vertexHelper = new VertexHelper(mesh))
|
|
{
|
|
this.ModifyMesh(vertexHelper);
|
|
vertexHelper.FillMesh(mesh);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600061E RID: 1566
|
|
public abstract void ModifyMesh(VertexHelper vh);
|
|
|
|
// Token: 0x040002D6 RID: 726
|
|
[NonSerialized]
|
|
private Graphic m_Graphic;
|
|
}
|
|
}
|