cull(engine-cleanup): pass-9 cascade round 2 after UILabel stub
This commit is contained in:
@@ -4,24 +4,9 @@ using UnityEngine;
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public class BMSymbol
|
public class BMSymbol
|
||||||
{
|
{
|
||||||
public string sequence;
|
|
||||||
|
|
||||||
private bool mIsValid;
|
private bool mIsValid;
|
||||||
|
|
||||||
private int mLength;
|
|
||||||
|
|
||||||
private int mOffsetX;
|
|
||||||
|
|
||||||
private int mOffsetY;
|
|
||||||
|
|
||||||
private int mWidth;
|
|
||||||
|
|
||||||
private int mHeight;
|
|
||||||
|
|
||||||
private int mAdvance;
|
|
||||||
|
|
||||||
private Rect mUV;
|
|
||||||
|
|
||||||
public void MarkAsChanged()
|
public void MarkAsChanged()
|
||||||
{
|
{
|
||||||
mIsValid = false;
|
mIsValid = false;
|
||||||
|
|||||||
@@ -4,11 +4,5 @@ public class UIGeometry
|
|||||||
{
|
{
|
||||||
public BetterList<Vector3> verts = new BetterList<Vector3>();
|
public BetterList<Vector3> verts = new BetterList<Vector3>();
|
||||||
|
|
||||||
public BetterList<Vector2> uvs = new BetterList<Vector2>();
|
|
||||||
|
|
||||||
public BetterList<Color32> cols = new BetterList<Color32>();
|
|
||||||
|
|
||||||
private BetterList<Vector3> mRtpVerts = new BetterList<Vector3>();
|
|
||||||
|
|
||||||
public bool hasVertices => verts.size > 0;
|
public bool hasVertices => verts.size > 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ public abstract class UIRect : MonoBehaviour
|
|||||||
|
|
||||||
public enum AnchorUpdate
|
public enum AnchorUpdate
|
||||||
{
|
{
|
||||||
OnEnable,
|
|
||||||
OnUpdate }
|
OnUpdate }
|
||||||
|
|
||||||
public AnchorPoint leftAnchor = new AnchorPoint();
|
public AnchorPoint leftAnchor = new AnchorPoint();
|
||||||
|
|||||||
@@ -128,24 +128,6 @@ public class UIRoot : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public float GetPixelSizeAdjustment(int height)
|
|
||||||
{
|
|
||||||
height = Mathf.Max(2, height);
|
|
||||||
if (activeScaling == Scaling.Constrained)
|
|
||||||
{
|
|
||||||
return (float)activeHeight / (float)height;
|
|
||||||
}
|
|
||||||
if (height < minimumHeight)
|
|
||||||
{
|
|
||||||
return (float)minimumHeight / (float)height;
|
|
||||||
}
|
|
||||||
if (height > maximumHeight)
|
|
||||||
{
|
|
||||||
return (float)maximumHeight / (float)height;
|
|
||||||
}
|
|
||||||
return 1f;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual void Awake()
|
protected virtual void Awake()
|
||||||
{
|
{
|
||||||
mTrans = base.transform;
|
mTrans = base.transform;
|
||||||
|
|||||||
Reference in New Issue
Block a user