Class CurvedUIVertexEffect
- Namespace
- CurvedUI
- Assembly
- Assembly-CSharp.dll
[DisallowMultipleComponent]
public class CurvedUIVertexEffect : BaseMeshEffect, IMeshModifier
- Inheritance
-
UIBehaviour
BaseMeshEffect
CurvedUIVertexEffect
- Implements
-
IMeshModifier
- Inherited Members
-
- Extension Methods
-
Constructors
CurvedUIVertexEffect()
public CurvedUIVertexEffect()
Fields
CanvasToLocal
public Matrix4x4 CanvasToLocal
Field Value
- Matrix4x4
CanvasToWorld
public Matrix4x4 CanvasToWorld
Field Value
- Matrix4x4
DoNotTesselate
[Tooltip("Check to skip tesselation pass on this object. CurvedUI will not create additional vertices to make this object have a smoother curve. Checking this can solve some issues if you create your own procedural mesh for this object. Default false.")]
public bool DoNotTesselate
Field Value
- bool
MyToLocal
public Matrix4x4 MyToLocal
Field Value
- Matrix4x4
MyToWorld
public Matrix4x4 MyToWorld
Field Value
- Matrix4x4
public bool TransformMisaligned
Field Value
- bool
_pos
Field Value
- Vector3
_uv0
Field Value
- Vector4
_uv1
Field Value
- Vector4
curvingRequired
public bool curvingRequired
Field Value
- bool
m_curvedVerts
public List<UIVertex> m_curvedVerts
Field Value
- List<UIVertex>
m_quad
Field Value
- UIVertex[]
m_ret
Field Value
- UIVertex
m_tesselatedVerts
public List<UIVertex> m_tesselatedVerts
Field Value
- List<UIVertex>
m_tesselationRequired
public bool m_tesselationRequired
Field Value
- bool
m_vertsInQuads
public List<UIVertex> m_vertsInQuads
Field Value
- List<UIVertex>
m_weights
Field Value
- float[]
myCanvas
Field Value
- Canvas
myGraphic
Field Value
- Graphic
mySettings
public CurvedUISettings mySettings
Field Value
- CurvedUISettings
myTMP
public TextMeshProUGUI myTMP
Field Value
- TextMeshProUGUI
myTMPSubMesh
public CurvedUITMPSubmesh myTMPSubMesh
Field Value
- CurvedUITMPSubmesh
myText
Field Value
- Text
savedColor
[SerializeField]
[HideInInspector]
public Color savedColor
Field Value
- Color
savedFill
[SerializeField]
[HideInInspector]
public float savedFill
Field Value
- float
savedPos
[SerializeField]
[HideInInspector]
public Vector3 savedPos
Field Value
- Vector3
savedRectSize
[SerializeField]
[HideInInspector]
public Vector2 savedRectSize
Field Value
- Vector2
savedTextUV0
[SerializeField]
[HideInInspector]
public Vector4 savedTextUV0
Field Value
- Vector4
savedUp
[SerializeField]
[HideInInspector]
public Vector3 savedUp
Field Value
- Vector3
Properties
CurvingRequired
public bool CurvingRequired { get; set; }
Property Value
- bool
TesselationRequired
public bool TesselationRequired { get; set; }
Property Value
- bool
tesselationRequired
public bool tesselationRequired { get; set; }
Property Value
- bool
Methods
Awake()
protected override void Awake()
CheckTextFontMaterial()
public void CheckTextFontMaterial()
CurveVertex(UIVertex, float, float, Vector2)
public UIVertex CurveVertex(UIVertex input, float cylinder_angle, float radius, Vector2 canvasSize)
Parameters
input
UIVertex
cylinder_angle
float
radius
float
canvasSize
Vector2
Returns
- UIVertex
FindParentSettings(bool)
public CurvedUISettings FindParentSettings(bool forceNew = false)
Parameters
forceNew
bool
Returns
- CurvedUISettings
FontTextureRebuiltCallback(Font)
public void FontTextureRebuiltCallback(Font fontie)
Parameters
fontie
Font
LateUpdate()
ModifyMesh(VertexHelper)
public override void ModifyMesh(VertexHelper vh)
Parameters
vh
VertexHelper
ModifyQuad(List<UIVertex>, int, Vector2)
public void ModifyQuad(List<UIVertex> verts, int vertexIndex, Vector2 requiredSize)
Parameters
verts
List<UIVertex>
vertexIndex
int
requiredSize
Vector2
ModifyTMPMesh(ref List<UIVertex>)
public void ModifyTMPMesh(ref List<UIVertex> vertexList)
Parameters
vertexList
List<UIVertex>
OnDisable()
protected override void OnDisable()
OnEnable()
protected override void OnEnable()
SetDirty()
ShouldModify()
public bool ShouldModify()
Returns
- bool
Start()
protected override void Start()
TesselateGeometry(List<UIVertex>)
public void TesselateGeometry(List<UIVertex> verts)
Parameters
verts
List<UIVertex>
TesselateQuad(float, float)
public UIVertex TesselateQuad(float x, float y)
Parameters
x
float
y
float
Returns
- UIVertex
TesselationRequiredCallback()
public void TesselationRequiredCallback()
TrisToQuads(List<UIVertex>)
public void TrisToQuads(List<UIVertex> verts)
Parameters
verts
List<UIVertex>