RealTime image put on a Canvas

Just wondering if I could take an image from a camera that is viewing only an object on a different layer and take that, convert it to an image and put that on a canvas?

Initially I was just trying to use my camera to overlay my image onto the canvas, but this is not seeming to work. Thank you!

~WM

Yes, you can. Search for “render textures”. You create a render texture in your hierarchy (or at runtime with code), then set that render texture as the render target of your camera.

Also, you need a “Raw Image” component instead of an “Image” one, that should have a reference to the render texture.

This link talks about RenderTexture: Unity - Manual: Render Texture

This one talks about RawImage: Redirect to... title of new-page

This video from the live training courses goes over this exact subject and provides an example: