Photon basics tutorial, getting an error CameraWork doesnt exist in current context
Hello,
i am a total beginner with photon and recently i stumbled upon an error while going through basic tutorial. In section 7 Networking there is a line of code CameraWork _cameraWork = this.gameObject.GetComponent<CameraWork>();
and i get an error saying CameraWork doesnt exist in current context. I think i did everything as it was in tutorial. If someone can give me some insight, it would be great. Thanks.
i am a total beginner with photon and recently i stumbled upon an error while going through basic tutorial. In section 7 Networking there is a line of code CameraWork _cameraWork = this.gameObject.GetComponent<CameraWork>();
and i get an error saying CameraWork doesnt exist in current context. I think i did everything as it was in tutorial. If someone can give me some insight, it would be great. Thanks.
0
Answers
-
Add this to the top of the file that is using CameraWork:
using Photon.Pun.Demo.PunBasics;
0