Skip to content

Unity-GamerFrameWork/Unity-UI-Rounded-Corners

 
 

Repository files navigation

Unity-UI-Rounded-Corners

这些组件和着色器可以让你为 UI 元素添加圆角!


如何安装

步骤 1:软件包管理器(Unity 2019.3 及更高版本)

要复制粘贴的网址:

https://github.com/Unity-GamerFrameWork/Unity-UI-Rounded-Corners.git

如何使用

对称的圆形

  • 为带有 Image 游戏对象添加 ImageWithRoundedCorners 组件
  • 调整 Radius 属性

每个角都具有一定的圆度值

  • ImageWithIndependentRoundedCorners 添加到带有 Image 游戏对象中
  • 调整 r Vector4 属性。每个向量分量表示半径,顺时针方向,从左上角开始。

特别注意

如果需要在运行时添加或更改图像,请 Validate() ,然后 Refresh() 来更新材质。

Features

单独或一次性改变圆度

调整尺寸时保持圆形

比精灵图质量更好

支持 Unity Mask

支持着色

About

倒圆角-UI-Rounded-Corners

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 46.6%
  • ShaderLab 30.5%
  • HLSL 22.9%