- Home /
Question by
drodrii · Sep 12, 2014 at 06:09 PM ·
guitexturespritespriterenderer
Gui.Box - Sprite
Hello everyone, I'll cut to the chase, thanks for dropping by.
So, I have a box which i want to add a sprite(image) to it instead of text.
I've done this:
spriteRenderer = model.GetComponent<SpriteRenderer>();
iconTexture = spriteRenderer.sprite.texture;
My only problem here is that the model is using a spritesheet and when i call icoNTexture I get the whole spritesheet and not just the first frame of the sSheet. What am I missing?
Thanks for your time and help! have a good one.
Comment
Your answer
Follow this Question
Related Questions
Gui Box - Texture - Spritesheet 0 Answers
Sprite Renderer changes visible position on being assigned to a sprite 1 Answer
Change sprite texture through script 4 Answers
Displaying Prefab Sprite as Texture on GUI Elements 0 Answers
Sprite Renderer is wrapping bottom pixel when it shouldn't be 1 Answer