TGViewer
Unity Free Asset Unity Free Asset @unitymaker · 5.5K subscribers
Post #264 3.7K
Unity UI Rounded Corners

Эффект округления углов для UI спрайтов.

🔗Описание:
Как использовать:
Симметричное скругление

Добавьте компонент ImageWithRoundedCorners на GameObject, у которого уже есть компонент Image.

Настройте свойство Radius.

Индивидуальное скругление для каждого угла

Добавьте компонент ImageWithIndependentRoundedCorners на GameObject с компонентом Image.

Настройте свойство r (Vector4). Каждый компонент вектора (X, Y, Z, W) отвечает за радиус своего угла по часовой стрелке, начиная с левого верхнего (X).

Важно:
Если вам нужно добавить или изменить изображение во время выполнения (runtime), вызовите Validate(), а затем Refresh(), чтобы обновить материалы.


🔗Description:
How to use:
Symmetrical Roundness

Add the ImageWithRoundedCorners component to a GameObject that has an Image component.

Adjust the Radius property.

Certain roundness value for each corner

Add the ImageWithIndependentRoundedCorners component to a GameObject that has an Image.

Adjust the r (Vector4) property. Each component of the vector (X, Y, Z, W) represents the radius for a corner, clockwise, starting with the top-left (X).

Important:
If you need to add or change the image at runtime, call Validate() and then Refresh() to update the materials.


📘License:
MIT License

Download link:
https://t.me/arhivunitymaker/116
  • 👍 16
More from @unitymaker
  1. Sep 22, 2026HelloMarioFramework Открытый 3D‑фреймворк на Unity, который воспроизводит ключевые механик…
  2. Sep 18, 2026The‑Cart Универсальная библиотека для Unity, созданная студией CarterGames. Она решает тип…
  3. Sep 14, 2026HELLO_MY_WORLD Открытый voxel‑проект на Unity, который стремится воспроизвести ключевые ме…
  4. Sep 11, 2026🎮 Die Zombit (unity-zombit) Ретро-вейв шутер с видом сверху про выживание в мире, захваче…
  5. Sep 8, 2026🔥 Нашёл невероятный проект — по сути, мультиплатформенный веб-аналог World of Tanks или W…
  6. Sep 6, 2026🎨 Unity Shader Library (Zoroiscrying) Коллекция шейдерных эффектов для Unity. Охватывает…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →