Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public WebCamTexture webcamTexture;
- public Quaternion baseRotation;
- void Update()
- {
- webcamTexture = new WebCamTexture();
- Renderer renderer = GetComponent<Renderer>();
- renderer.material.mainTexture = webcamTexture;
- int webcamAngle = webcamTexture.videoRotationAngle; //this one gave me error.
- }
- Quaternion webcamAngle = new Quaternion();
- webcamAngle = Camera.main.transform.rotation;
- Debug.Log(webcamAngle); //this gave me (0.0, 0.0, 0.0, 1.0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement