27 lines
675 B
C#
27 lines
675 B
C#
using System;
|
|
|
|
namespace UnityEngine.UI
|
|
{
|
|
// Token: 0x020000AE RID: 174
|
|
[AddComponentMenu("UI/Effects/Position As UV1", 16)]
|
|
public class PositionAsUV1 : BaseMeshEffect
|
|
{
|
|
// Token: 0x06000624 RID: 1572 RVA: 0x0001EACE File Offset: 0x0001CECE
|
|
protected PositionAsUV1()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000625 RID: 1573 RVA: 0x0001EAD8 File Offset: 0x0001CED8
|
|
public override void ModifyMesh(VertexHelper vh)
|
|
{
|
|
UIVertex uivertex = default(UIVertex);
|
|
for (int i = 0; i < vh.currentVertCount; i++)
|
|
{
|
|
vh.PopulateUIVertex(ref uivertex, i);
|
|
uivertex.uv1 = new Vector2(uivertex.position.x, uivertex.position.y);
|
|
vh.SetUIVertex(uivertex, i);
|
|
}
|
|
}
|
|
}
|
|
}
|