Skip to content

UI components that render based on SDF. Rounded corners, outlines, SDFTexture editor.

License

Notifications You must be signed in to change notification settings

TLabAltoh/Unity-SDF-UI-Toolkit

Repository files navigation

Unity-SDF-UI-Toolkit

This plugin is based on Unity-UI-Rounded-Corners created by kirevdokimov. UI components that render based on SDF. Rounded corners, outlines, SDFTexture editor. Additional shapes implemented based on this article (not all)

Screenshot

Overview
Editor for creating Custom Shapes

Install

Git

Clone this repository with the following command

git clone https://github.com/TLabAltoh/Unity-SDF-UI-Toolkit.git

or

git submodule add https://github.com/TLabAltoh/Unity-SDF-UI-Toolkit.git

Unity Package Manager

add package from git URL ...

https://github.com/TLabAltoh/Unity-SDF-UI-Toolkit.git#upm

SDF Texture

Select Create/TLab/UI/SDF/SDF Tex Painter to add a Scriptable Object to the asset.

Circle

Mouse Drag Move Handle
Shift + Left Click Select Handle
Delete Delete Selected Handle

Bezier

Mouse Drag Move Anchor Handle
Crtl + Mouse Drag Move Control Handle
Shift + Left Click Select Anchor Handle
Delete Delete Selected Handle

Cu2Qu

SDF Text Painter converts the cubic Bezier curve to a quadratic Bezier curve based on this code.

Lisence

This repository is MIT licensed.

About

UI components that render based on SDF. Rounded corners, outlines, SDFTexture editor.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published