- Home /
Question by
Fewpwew130 · Jan 03, 2015 at 08:14 PM ·
guibar
Resize an image via script
Hi! Could you please help me how to resize an image via script?
I would like to make a bar longer as I press the spacebar. For that purpose I've created an empty, a camera and a camera-attached UI canvas element. I added raw image component to the empty. And placed an image into it (sprite, texture, doesn't matter). How do I transform its width via script?
Thanks!
Comment
Your answer
Follow this Question
Related Questions
How can i make a GUI for my battery life? 1 Answer
Object Colour Change 1 Answer
Background shines through on Android 0 Answers
Show GUI only when looking at an object? 1 Answer
Progress of loading level 1 Answer