{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":652677686,"defaultBranch":"master","name":"Unity_UI_Rounded_Corners","ownerLogin":"ReForge-Mode","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-06-12T15:07:34.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/35650645?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1686664810.058968","currentOid":""},"activityList":{"items":[{"before":"f80f59f64d1dfce988b838593e5075207f44f1f0","after":"0ae398b2cbc24ff46687389c38055a4054a0c63a","ref":"refs/heads/master","pushedAt":"2023-06-12T15:37:34.973Z","pushType":"push","commitsCount":1,"pusher":{"login":"ReForge-Mode","name":"ReForge Mode","path":"/ReForge-Mode","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/35650645?s=80&v=4"},"commit":{"message":"Quality of Life Update\n\nI added some quality of life update in this commit. Mostly to make it easier to use for new user without needing to look at the code. \r\n\r\n1. Added a custom Editor script to display Vector4 in separate labels for the four corners in the ImageWithIndependentRoundedCorners. This makes it very clear which corner is which. Previously it was just a Vector4 with w, x, y, z. Now it's Top Left, Top Right, Bottom Right, Bottom Left.\r\n\r\n2. Added a line in OnDestroy() to set the UI Image material to null after the component is removed. Previously, when you delete this component, the UI Image material goes to \"Missing\". Now it's properly reset to null.\r\n\r\n3. Added a validation in OnEnable(). Now you can either has ImageWithIndependentCorners or ImageWithRoundedCorners. You can't have both in the same object. I also added [ExecuteInEditMode] so this validation will run properly.\r\n\r\n4. Added [DisallowMultipleComponent] to both scripts. Only one of these components can exist in every gameobject, since only one of them can influence the shader anyway.\r\n\r\n5. Added a default value for the radius when the component is added. This gives the user instant feedback that the script works without needing to alter the value first.\r\n\r\n6. Make the radius value consistent between two components. When ImageWIthRoundedCorners and ImageWithIndependentRoundedCorners have the same radius value, the ImageWithIndependentRoundedCorners appear to have bigger radius. To compensate this, I multiply the radius by two in ImageWithRoundedCorners as a quick fix. Maybe you can figure it the root cause further.\r\n\r\n7. If the user swapped the ImageWithRoundedCorners with ImageWithIndependentCorners, the radius value will be carried over. The other way also works using the radius Vector4.x value.\r\n\r\n","shortMessageHtmlLink":"Quality of Life Update"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADP7__ZwA","startCursor":null,"endCursor":null}},"title":"Activity ยท ReForge-Mode/Unity_UI_Rounded_Corners"}