12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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<RawImage>();
- if (ri != null)
- {
- ri.material = (Material)Resources.Load("renderMat");
- }
- else
- {
- myQuad.GetComponent<MeshRenderer>().material = (Material)Resources.Load("renderMat");
- }
- if (ri != null)
- {
- ri.texture = myRenderTexture;
- }
- else
- {
- myQuad.GetComponent<MeshRenderer>().material.mainTexture = myRenderTexture;
- }*/
- }
- public void init()
- {
- // this.Quad.GetComponent<MeshRenderer>().material.mainTexture = SCRtcFactory.Instance.mSCRtcMe.tex;
- }
- }
|