I have an array containing two Texture2Ds, I want to be able to change the Texture2D of the GUITexture that I am instantiating, here is the code I am using:
However I always receive the error 'texture' is not a member of UnityEngine.Object
asked Mar 20 '11 at 01:52 AM
Instantiate returns Object; you need to cast it to GUITexture.
answered Mar 20 '11 at 02:25 AM