I know how to make a cubemap with a RenderTexture, but how can I set this cubemapped RenderTexture as a GUI image to preview it in my game?
Normal GUI images work, but this cubemap doesn't show. Only a white rectangle is shown.
I know how to make a cubemap with a RenderTexture, but how can I set this cubemapped RenderTexture as a GUI image to preview it in my game?
Normal GUI images work, but this cubemap doesn't show. Only a white rectangle is shown.
Try casting:
public RenderTexture cubeMap; // Assign through inspector
public GUITexture blank; // Assign a blank GUITexture here
Texture2D drawTexture = (Texture2D)cubemap;
void Start() { blank.texture = drawTexture; }