scripts
This commit is contained in:
@@ -0,0 +1,152 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000041 RID: 65
|
||||
[Serializable]
|
||||
public class pb_UV
|
||||
{
|
||||
// Token: 0x0600021E RID: 542 RVA: 0x0001D278 File Offset: 0x0001B678
|
||||
public pb_UV()
|
||||
{
|
||||
this.useWorldSpace = false;
|
||||
this.flipU = false;
|
||||
this.flipV = false;
|
||||
this.swapUV = false;
|
||||
this.fill = pb_UV.Fill.Tile;
|
||||
this.scale = new Vector2(1f, 1f);
|
||||
this.offset = new Vector2(0f, 0f);
|
||||
this.rotation = 0f;
|
||||
this.anchor = pb_UV.Anchor.None;
|
||||
}
|
||||
|
||||
// Token: 0x0600021F RID: 543 RVA: 0x0001D2EC File Offset: 0x0001B6EC
|
||||
public pb_UV(pb_UV uvs)
|
||||
{
|
||||
this.useWorldSpace = uvs.useWorldSpace;
|
||||
this.flipU = uvs.flipU;
|
||||
this.flipV = uvs.flipV;
|
||||
this.swapUV = uvs.swapUV;
|
||||
this.fill = uvs.fill;
|
||||
this.scale = uvs.scale;
|
||||
this.offset = uvs.offset;
|
||||
this.rotation = uvs.rotation;
|
||||
this.anchor = uvs.anchor;
|
||||
}
|
||||
|
||||
// Token: 0x06000220 RID: 544 RVA: 0x0001D36C File Offset: 0x0001B76C
|
||||
public void Reset()
|
||||
{
|
||||
this.useWorldSpace = false;
|
||||
this.flipU = false;
|
||||
this.flipV = false;
|
||||
this.swapUV = false;
|
||||
this.fill = pb_UV.Fill.Tile;
|
||||
this.scale = new Vector2(1f, 1f);
|
||||
this.offset = new Vector2(0f, 0f);
|
||||
this.rotation = 0f;
|
||||
this.anchor = pb_UV.Anchor.LowerLeft;
|
||||
}
|
||||
|
||||
// Token: 0x06000221 RID: 545 RVA: 0x0001D3D8 File Offset: 0x0001B7D8
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Concat(new object[]
|
||||
{
|
||||
"Use World Space: ", this.useWorldSpace, "\nFlip U: ", this.flipU, "\nFlip V: ", this.flipV, "\nSwap UV: ", this.swapUV, "\nFill Mode: ", this.fill,
|
||||
"\nAnchor: ", this.anchor, "\nScale: ", this.scale, "\nOffset: ", this.offset, "\nRotation: ", this.rotation, "\nPivot: ", this.localPivot,
|
||||
"\n"
|
||||
});
|
||||
}
|
||||
|
||||
// Token: 0x0400017A RID: 378
|
||||
public bool useWorldSpace;
|
||||
|
||||
// Token: 0x0400017B RID: 379
|
||||
public bool flipU;
|
||||
|
||||
// Token: 0x0400017C RID: 380
|
||||
public bool flipV;
|
||||
|
||||
// Token: 0x0400017D RID: 381
|
||||
public bool swapUV;
|
||||
|
||||
// Token: 0x0400017E RID: 382
|
||||
public pb_UV.Fill fill;
|
||||
|
||||
// Token: 0x0400017F RID: 383
|
||||
public Vector2 scale;
|
||||
|
||||
// Token: 0x04000180 RID: 384
|
||||
public Vector2 offset;
|
||||
|
||||
// Token: 0x04000181 RID: 385
|
||||
public float rotation;
|
||||
|
||||
// Token: 0x04000182 RID: 386
|
||||
[Obsolete("Please use pb_UV.anchor.")]
|
||||
public pb_UV.Justify justify;
|
||||
|
||||
// Token: 0x04000183 RID: 387
|
||||
public Vector2 localPivot;
|
||||
|
||||
// Token: 0x04000184 RID: 388
|
||||
[Obsolete("localPivot and localSize are no longer stored.")]
|
||||
public Vector2 localSize;
|
||||
|
||||
// Token: 0x04000185 RID: 389
|
||||
public pb_UV.Anchor anchor;
|
||||
|
||||
// Token: 0x02000042 RID: 66
|
||||
[Obsolete("See pb_UV.Anchor")]
|
||||
public enum Justify
|
||||
{
|
||||
// Token: 0x04000187 RID: 391
|
||||
Right,
|
||||
// Token: 0x04000188 RID: 392
|
||||
Left,
|
||||
// Token: 0x04000189 RID: 393
|
||||
Top,
|
||||
// Token: 0x0400018A RID: 394
|
||||
Center,
|
||||
// Token: 0x0400018B RID: 395
|
||||
Bottom,
|
||||
// Token: 0x0400018C RID: 396
|
||||
None
|
||||
}
|
||||
|
||||
// Token: 0x02000043 RID: 67
|
||||
public enum Anchor
|
||||
{
|
||||
// Token: 0x0400018E RID: 398
|
||||
UpperLeft,
|
||||
// Token: 0x0400018F RID: 399
|
||||
UpperCenter,
|
||||
// Token: 0x04000190 RID: 400
|
||||
UpperRight,
|
||||
// Token: 0x04000191 RID: 401
|
||||
MiddleLeft,
|
||||
// Token: 0x04000192 RID: 402
|
||||
MiddleCenter,
|
||||
// Token: 0x04000193 RID: 403
|
||||
MiddleRight,
|
||||
// Token: 0x04000194 RID: 404
|
||||
LowerLeft,
|
||||
// Token: 0x04000195 RID: 405
|
||||
LowerCenter,
|
||||
// Token: 0x04000196 RID: 406
|
||||
LowerRight,
|
||||
// Token: 0x04000197 RID: 407
|
||||
None
|
||||
}
|
||||
|
||||
// Token: 0x02000044 RID: 68
|
||||
public enum Fill
|
||||
{
|
||||
// Token: 0x04000199 RID: 409
|
||||
Fit,
|
||||
// Token: 0x0400019A RID: 410
|
||||
Tile,
|
||||
// Token: 0x0400019B RID: 411
|
||||
Stretch
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user