internal void SetBorderRadius(int tl, int tr, int bl, int br) { Context.Dispatcher.OnUpdate(() => { if (Image) { Image.sprite = BorderGraphic.CreateBorderSprite(tl, tr, bl, br); } }); }
internal void SetBorderRadius(int borderRadius) { MainThreadDispatcher.OnUpdate(() => { if (Image) { Image.sprite = BorderGraphic.CreateBorderSprite(borderRadius); } }); }