Logo
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

NameTypeDescription
curveAnglefloatTotal cylindrical arc in degrees.
segmentsintSubdivision count for supported rectangular quads.
curveDirectionCurveDirectionInward or Outward bend.
rescanIntervalFramesintFallback interval for discovering changed descendants.

Methods

NameParametersDescription
RefreshManagedGraphics()NoneImmediately discovers descendant graphics.
SetAllMeshesDirty()NoneRequests regeneration of managed meshes.

Example

CurvedCanvasExample.cs
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();
    }
}

On this page