webcam input as gui texture?

I wrote a plugin, that allows me to capture frames from my webcam. I want to display those in my GUI. I managed to create a texture and show it on a plane. When I use the same texture for a GUI.Box or similar the texture is not shown. Is there something special about textures in GUI that I have to know?

Here's what I do to show the texture on the plane:

void Update () {
    getFrame(intPixels.AddrOfPinnedObject(), width, height);

This is the OnGUI:

void OnGUI()
    Rect rect = new Rect(10, 10, 100, 100);
    GUI.Box(rect, tex);

Any idea why this doesn't work?

Does your GUI code work with a normal texture?

If yes, just guessing, but how does your plugin output the alpha values for the texture? The GUI system uses a shader which renders alpha as transparent - if your alpha values are all zero, you won't see anything.

In Unity 3.5 you can use a WebCamTexture with it you can just use the webcam texture itself in your GUI.Box call.

Check out the script here: Unity Video Remake: Webcam Textures - to get the webcam texture