Effects
Curved Canvas
Bend descendant UI geometry into a cylindrical surface
Overview
Curved Canvas bends descendant uGUI and TextMesh Pro geometry around a cylindrical arc. It can create a curved panel or visor-like display.
Usage
Add Curved Canvas to a Canvas with a RectTransform.
Choose Inward or Outward curvature.
Set the total curve angle and subdivision count.
Enable editor preview when you want to inspect the bend outside Play Mode.
Notes
Curved Canvas changes rendered geometry, but does not replace the standard GraphicRaycaster with a curved-surface input system.
Public API
Use CurvedCanvas in the Evo.UI namespace.
Fields
| Name | Type | Description |
|---|---|---|
curveAngle | float | Total cylindrical arc in degrees. |
segments | int | Subdivision count for supported rectangular quads. |
curveDirection | CurveDirection | Inward or Outward bend. |
rescanIntervalFrames | int | Fallback interval for discovering changed descendants. |
Methods
| Name | Parameters | Description |
|---|---|---|
RefreshManagedGraphics() | None | Immediately discovers descendant graphics. |
SetAllMeshesDirty() | None | Requests regeneration of managed meshes. |
Example
using UnityEngine;
using Evo.UI;
public class CurvedCanvasExample : MonoBehaviour
{
[SerializeField] private CurvedCanvas target;
private void Start()
{
target.curveAngle = 25f;
target.segments = 16;
target.curveDirection = CurvedCanvas.CurveDirection.Inward;
target.RefreshManagedGraphics();
target.SetAllMeshesDirty();
}
}