Runtime Curve Editor
Visually edit curves at runtime in game

* This page contains affiliate links, meaning we may earn a small commission if you purchase something through them, at no extra cost. $5
- Category:
- Tools › Gui
- Developer:
- rus artur pfa
- Price:
- $5
- Rating:
- Favorites:
- 110
- Supported Unity Versions:
- 2021.3.16 or higher
- Current Version:
- 2.3.1
- Download Size:
- 348.23 KB
- Last Update:
- Feb 17, 2025
- Description:
- This package allows for visually editing curves at runtime, similar to Unity's built-in curve editors for Animation Curve or ParticleSystem. The behavior and user options are identical to those in Unity's curve editor, with the equation used to plot the curve being 100% equivalent to that of the Unity Engine. The package consists of C# scripts and does not require Unity Pro, additional assets, or libraries. All code is available, and it has been tested on PC, Mac, WebGL, iOS, and Android. A demo and WebGL build are available for review.
- Technical Details:
- The package renders all lines and curves using Graphics.RenderMesh on a custom layer named RuntimeCurveEditor (at slot 30), which is hardcoded in CurveWindow.cs. Texts, panels, inputs, and buttons are created using Unity.UI and rendered on the same RuntimeCurveEditor layer. The Runtime Curve Editor is rendered with an orthogonal camera, which can have a transparent background. If the editor is added to a scene with a main camera, the culling mask of the main camera must be set to disable the RuntimeCurveEditor layer to avoid additional rendering.
- Continue »