How can i accessing Webcam on a main camera? Cause i’ve try to accessing webcam on a 3d object (Quad), but it cause a reflection light on it. How can i solve this ? Thanks for helping
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraScript : MonoBehaviour
{
static WebCamTexture backCam;
void Start()
{
if (backCam == null)
backCam = new WebCamTexture();
GetComponent<Renderer>().material.mainTexture = backCam;
if (!backCam.isPlaying)
backCam.Play();
}
void Update()
{
}
}
Iam using this code for a Quad Component as script
Try unlit material to avoid lights on an object.
Where it is ? Could you please screenshot that feature ?
just change your shader into unlit
