You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get `.unitypackage` from [releases](https://github.com/kirevdokimov/Unity-UI-Rounded-Corners/releases)
27
27
28
28
## How to use
29
-
### Version 3
30
-
#### Same roundness
31
-
- Just attach `ImageWithRoundedCorners` to a gameobject with an `Image`
32
-
- Profit
33
-
#### Separate roundness
34
-
- Just attach `ImageWithIndependentRoundedCorners` to a gameobject with an `Image`
35
-
- Profit
36
-
#### Updates
37
-
If you need to add/change the image at runtime, call `Validate()` and/or `Refresh()` to update the materials.
38
-
### Version 2 (Legacy)
39
-
#### Same roundness
40
-
- Attach `ImageWithRoundedCorners` to a gameobject with an `Image`
41
-
- Сreate a new material
42
-
- Pick the `RoundedCorners` shader
43
-
- Attach the material to the `ImageWithRoundedCorners` and the `Image`
44
-
- Profit
45
-
#### Separate roundness
46
-
- Attach `ImageWithIndependentRoundedCorners` to a gameobject with an `Image`
47
-
- Сreate a new material
48
-
- Pick the `IndependentRoundedCorners` shader
49
-
- Attach the material to the `ImageWithIndependentRoundedCorners` and the `Image`
50
-
- Profit
29
+
#### Symmetrical roundness
30
+
- Add `ImageWithRoundedCorners` component to a GameObject with an `Image`
31
+
- Adjust `Radius` property
32
+
#### Certain roundness value for each corner
33
+
- Add `ImageWithIndependentRoundedCorners` to a GameObject with an `Image`
34
+
- Adjust
35
+
#### Important thing
36
+
If you need to add or change the image at runtime, call `Validate()` and then `Refresh()` to update the materials.
37
+
51
38
52
39
# Features
53
40
## Changing roundness separately or all at once
54
-

41
+

55
42
## Keeps round while resizing
56
43

57
44
## Better quality than sprites
@@ -61,8 +48,5 @@ If you need to add/change the image at runtime, call `Validate()` and/or `Refres
61
48
## Supports Tint
62
49

63
50
64
-
# Performance concerns
65
-
Each instance of the script creates a separate material at start-up. If you want to share one material with the same rounding radius between multiple images or have more control over when the materials are created and destroyed, use version 2.
66
-
67
51
# Giving back
68
52
If this project has helped you and you'd like to contribute back, you can always [buy me a ☕](https://ko-fi.com/X8X03ULFQ)!
0 commit comments