API reference

CanvasCylinder Class

Extends CanvasMesh

Static Fields

MIN_RESOLUTION : const int
Signature
const int MIN_RESOLUTION

Properties

ArcDegrees : float
[Get]
The horizontal size of the plane, in degrees.
Signature
float ArcDegrees
Bottom : float
[Get]
The bottom of the plane relative to the Cylinder Y position, in Cylinder local space.
Signature
float Bottom
Cylinder : Cylinder
[Get]
The cylinder the curved plane lies on.
Signature
Cylinder Cylinder
Radius : float
[Get]
Signature
float Radius
Rotation : float
[Get]
The rotation of the center of the plane relative to the Cylinder's forward Z axis, in degrees.
Signature
float Rotation
Top : float
[Get]
The top of the plane relative to the Cylinder Y position, in Cylinder local space.
Signature
float Top

Protected Methods

GenerateMesh ( verts , tris , uvs )
Signature
override void GenerateMesh(out List< Vector3 > verts, out List< int > tris, out List< Vector2 > uvs)
Parameters
verts: out List< Vector3 >
tris: out List< int >
uvs: out List< Vector2 >
Returns
override void
MeshInverseTransform ( localPosition )
Signature
override Vector3 MeshInverseTransform(Vector3 localPosition)
Parameters
localPosition: Vector3
Returns
override Vector3
Start ()
Signature
override void Start()
Returns
override void
UpdateImposter ()
Signature
override void UpdateImposter()
Returns
override void

Methods

GetCylinderSegment ( segment )
Attempts to retrieve the cylinder segment corresponding to the allowed region of the clipped surface.
Signature
bool GetCylinderSegment(out CylinderSegment segment)
Parameters
segment: out CylinderSegment  The cylinder segment to which the underlying ISurface should be clipped
Returns
bool  True if clipping should be performed, false otherwise
InjectAllCanvasCylinder ( canvasRenderTexture , meshFilter , cylinder , orientation )
Signature
void InjectAllCanvasCylinder(CanvasRenderTexture canvasRenderTexture, MeshFilter meshFilter, Cylinder cylinder, CylinderOrientation orientation)
Parameters
canvasRenderTexture: CanvasRenderTexture
meshFilter: MeshFilter
cylinder: Cylinder
orientation: CylinderOrientation
Returns
void
InjectCylinder ( cylinder )
Signature
void InjectCylinder(Cylinder cylinder)
Parameters
cylinder: Cylinder
Returns
void
InjectOrientation ( orientation )
Signature
void InjectOrientation(CylinderOrientation orientation)
Parameters
orientation: CylinderOrientation
Returns
void

Inner Struct

MeshGenerationSettings Struct

Fields

MaxHorizontalResolution : int
Signature
int MaxHorizontalResolution
MaxVerticalResolution : int
Signature
int MaxVerticalResolution
VerticesPerDegree : float
Signature
float VerticesPerDegree