Not sure if the shader still works in today’s engine but it sounds like you are looking for this approach: Video Chromakey Shader
Not sure if the shader still works in today’s engine but it sounds like you are looking for this approach: Video Chromakey Shader