Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Error: CS8803 I'm new to making videogames in unity, but recently I got this error and I don't know how to correct it, the error is 8803, here is the code with the video link

$
0
0
https://www.youtube.com/watch?v=kLEhqRDVjgI,https://www.youtube.com/watch?v=kLEhqRDVjgI { private SpriteRenderer spriterenderer; public new Camera camera; void start() { spriterenderer = GetComponent(); } void Update() { RotateTowardsMouse(); } void RotateTowardsMouse() { float angle = GetAngleTowardsMouse(); transform.rotation = Quaterni9on.Euler(0, 0, angle); spriteRenderer.flipY = angle >= 90 && angle <= 270; float GetAngleTowardsMouse(); Vector3 mouseWorldPosition = camera.ScreenToWorldPoint(Input.mousePosition); Vector3 mouseDirection = mouseWorldPosition - transform.position; mouseDirection.z = 0; float angle = (Vector3.SignedAngle(Vector3.right, mouseDirection, Vector3.forward) + 360) % 360; } } return angle;

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>