# GUITexture Problem

**URL:** https://discussions.unity.com/t/guitexture-problem/441022
**Category:** UI
**Tags:** IMGUI
**Created:** [March 31, 2011, 11:12am UTC](https://discussions.unity.com/t/guitexture-problem/441022 "2011-03-31T11:12:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![anon\_39399968](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon\_39399968](https://discussions.unity.com/u/anon_39399968)
#### Post date: [March 31, 2011, 11:12am UTC](https://discussions.unity.com/t/guitexture-problem/441022/1 "2011-03-31T11:12:54Z")

</div>

Hello all.

With my application I’m trying to realize a stereoscopic mode. I would like to put 2 GUITexture. 1 for the left eye and 1 for the right eye.  
So I created two renderer textures, two camera and two GUITexture.  
For the moment I’m just testing the system with one GUITexture enabled. And I have a sort infinity problem.  
You can see an example on the screenshot I joined. I don’t know why I have this effect.  
Have you an idea to avoid this ?

Thanks 🙂

 ![538841--18986--$Screenshot 2011-03-31 Ã 13.05.34.jpg](https://europe1.discourse-cdn.com/unity/original/4X/9/8/4/9848ebd29b7ce7202def82d835ea30d3b661079a.jpeg)

---

<div class="post-metadata">

### Author: ![andeeeee](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@andeeeee](https://discussions.unity.com/u/andeeeee)
#### Post date: [March 31, 2011, 1:44pm UTC](https://discussions.unity.com/t/guitexture-problem/441022/2 "2011-03-31T13:44:02Z")

</div>

This effect is caused when a camera is looking at its own output. Is the object that displays the render texture in the view of the camera that generates the texture?

---

<div class="post-metadata">

### Author: ![anon\_39399968](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon\_39399968](https://discussions.unity.com/u/anon_39399968)
#### Post date: [March 31, 2011, 2:03pm UTC](https://discussions.unity.com/t/guitexture-problem/441022/3 "2011-03-31T14:03:55Z")

</div>

This is my hierarchy :

---- Main Camera  
---- ------------------- Left Camera  
---- ------------------- Right Camera  
---- End Main Camera

---- GUITexture Left Eye (with a renderer Texture)

---

<div class="post-metadata">

### Author: ![anon\_39399968](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon\_39399968](https://discussions.unity.com/u/anon_39399968)
#### Post date: [March 31, 2011, 2:26pm UTC](https://discussions.unity.com/t/guitexture-problem/441022/4 "2011-03-31T14:26:28Z")

</div>

I succeed by uncheck the GUILayer Left Camera and it’s good now.  
BTW do you know how to resize a GUITexture with script ? Because I would like that my GUITexture feet with all the resolution.
