- Home /
Object invisible to camera but shown in reflection
As the title suggests, I'm looking for a way to have an object which is only visible in reflections. Any ideas how I might do this?
Answer by JimmyCushnie · Feb 03, 2021 at 03:38 AM
Have your object on a layer that is not in the culling mask of the camera, but is in the culling mask of the reflection probe.
There, now that your question is answered you can finally finish your project from 11 years ago!
Answer by GamezAtWork · Nov 11, 2010 at 04:04 PM
Well... I'm not too sure about this... But if you have Unity Pro, perhaps you could try looking into Render Texture?
http://unity3d.com/support/documentation/Components/class-Camera.html
Since they mentioned you could put Camera views onto Gameobjects as textures... Perhaps you could do a certain sort of script which would make a camera on the mirror follow you when you passed by it, and render that view onto the mirror.
All cameras except for the camera on the mirror would be culled in such a manner that only the camera in the mirror can see that object.
Hopefully this would work?
Your answer

Follow this Question
Related Questions
Identifying/detecting whether an object is visible in a mirror reflection (using Water.cs) 1 Answer
Mirror reflection stretching problems 0 Answers
Reflection Probes: only cull mask anchored object 0 Answers
Ways to avoid reflections? image of the problem provided 0 Answers
I keep getting Mono.Cecil.AssemblyResolutionException on compile 0 Answers