Reusable uGUI extension components for Unity 6 and newer.
This package focuses on small, project-agnostic UI components that improve common Unity UI workflows without adding gameplay-specific assumptions or global runtime systems.
- Unity 6.0 or newer
- Unity uGUI package (
com.unity.ugui)
Install with Unity Package Manager using the Git URL:
https://github.com/nelu572/Unity-UI-Extensions.git
In Unity:
- Open Window > Package Manager.
- Click +.
- Choose Install package from git URL....
- Enter the Git URL above.
RoundedImage is a uGUI image component for drawing rounded UI rectangles without requiring texture assets.
Use it like a regular Image component:
- Add
RoundedImageto a UI GameObject. - Assign a Sprite if needed.
- Set the
ColorandRadiusin the Inspector.
The radius is expressed in UI pixel units and updates in edit mode when the RectTransform or Inspector value changes.
Implementation notes:
- Inherits from
UnityEngine.UI.Image. - Uses a shared SDF-based UI shader for anti-aliased rounded clipping.
- Encodes per-element size and radius in UI vertex channels.
- Enables
TexCoord1andTexCoord2on the owning Canvas when needed.
UIGradient is a reusable linear gradient effect for uGUI Graphic components.
- Add
UIGradientto a GameObject with aGraphic. - Set
Start Color,End Color, andAngle.
The gradient multiplies the existing vertex colors, so the base Graphic color and alpha still participate in the final result.
BetterOutline is a simple adjustable outline effect for uGUI Graphic components.
- Add
BetterOutlineto a GameObject with aGraphic. - Set
Color,Width, andUse Graphic Alpha.
The effect creates outline geometry around the source graphic and keeps the original graphic drawn above the outline.
Create a rounded gradient button:
- Create a UI GameObject.
- Add
RoundedImage. - Set
Radiusto12. - Add
UIGradient. - Set the gradient colors and angle.
Add an outline:
- Add
BetterOutlineto the same GameObject. - Set
Widthto2. - Set the outline color.
- Rounded UI image rendering
- Linear UI gradient
- Adjustable UI outline
Future components such as rounded masks, shadows, fades, transitions, safe area helpers, and editor creation menus are intentionally not included in 0.1.0.