using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CustomMe : SCRtcMe { public float volumn = 0.2f; public GameObject myQuad; public override void setMyCamera(Texture myRenderTexture) { base.setMyCamera(myRenderTexture); /* RawImage ri = myQuad.GetComponent(); if (ri != null) { ri.material = (Material)Resources.Load("renderMat"); } else { myQuad.GetComponent().material = (Material)Resources.Load("renderMat"); } if (ri != null) { ri.texture = myRenderTexture; } else { myQuad.GetComponent().material.mainTexture = myRenderTexture; }*/ } public void init() { // this.Quad.GetComponent().material.mainTexture = SCRtcFactory.Instance.mSCRtcMe.tex; } }