|
I want to make a simple app which has a GUITexture in the middle of the screen, the GUITexture has a Texture2D texture, which is a blue rectangle made somehow with SetPixels().. Im really new to Unity, and i cant make it work.. How to do this? And if im wrong, and it cant be made this way, then how to make a gui element which pixels can be modified at runtime?
(comments are locked)
|
|
Make a Color array filled with blue and assign that to a texture using SetPixels. Then assign that texture to the texture property of the GUITexture object.
(comments are locked)
|
|
Thanks Eric5h5, that answers my question too. Here's the code (C#) ...
(comments are locked)
|

Is this the free version of Unity, or Unity Pro?
@Novodantis: it doesn't matter. Free/Pro has no difference in functionality in this case.