Closed rsking01 closed 9 months ago
Hello. I have a problem with setting the sprite to a 2d object (circle). When I put it, it becomes invisible (object). Thus for Image the sprite is put and . What is it connected with?
private void RequestImage(GameObject obj, Picture picture) { Dispatcher.RunOnMainThread(() => { mgr.RequestSprite(picture, spr => { if (obj != null && obj.gameObject != null && obj.gameObject.activeInHierarchy) { SpriteRenderer spriteRenderer = obj.GetComponent<SpriteRenderer>(); spriteRenderer.sprite = spr; } }); }); }
Hello. I have a problem with setting the sprite to a 2d object (circle). When I put it, it becomes invisible (object). Thus for Image the sprite is put and . What is it connected with?