1.0.7 • Published 4 years ago

com.adlucem.ui.roundedimage v1.0.7

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Rounded corner image implementation for Unity UI

This package is an implementation of a UI rounded image as BaseMeshEffect. It uses additionnal channels of UI Canvas (TexCoord1 and TexCoord2) to pass rounded informations to the shader.

How to use

  • Set your canvas Additional Shader Channels using TexCoord1 and TexCoord2
  • Add image RoundedCornerEffect Monobehaviour next to your image to round
  • Add a rounded image material to your image material
  • Adjust corner radius

Sample

  • Look at the sample scene in Tests folder if you have any doubt

Registry

npmjs regisry : com.adlucem.ui.roundedimage

Add these lines in Packages/manifest.json of your project.

"scopedRegistries": [
  {
    "name": "adlucem",
    "url": "https://registry.npmjs.com",
    "scopes": [
      "com.adlucem"
    ]
  }
],
"dependencies": {
  "com.adlucem.ui.roundedimage": "X.X.X",
  ...
  }
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago