Added Photon pun2 to 3d Game kit and got this error
okay so first off I'm totally a noob and I don't know any C#. I downloaded the 3d kit from unity (my first game project) then added bolt a few game objects and finally added photon pun2 in the hopes of my friends walking around the level. Nothing too serious. I followed an online tutorial and everything went smooth until I got this error. Any help would be much appreciated and if it is possible to fix the error using bolt that would be perfect. I'm guessing the issue may be related to "Photon View Is Mine" since the tutorial I followed showed it being added directly to the Player movement bolt script. The issue is that the player movement script in the 3d game kit is written in c# so i can't add the "Photon View Is Mine" thing which might be the problem? If anyone has any tips on how to add the "Photon View Is Mine" using bolt that would be much appreciated :)
NullReferenceException: Object reference not set to an instance of an object Gamekit3D.PlayerController.SetTargetRotation () (at Assets/3DGamekit/Scripts/Game/Player/PlayerController.cs:322) Gamekit3D.PlayerController.FixedUpdate () (at Assets/3DGamekit/Scripts/Game/Player/PlayerController.cs:198)
NullReferenceException: Object reference not set to an instance of an object Gamekit3D.PlayerController.SetTargetRotation () (at Assets/3DGamekit/Scripts/Game/Player/PlayerController.cs:322) Gamekit3D.PlayerController.FixedUpdate () (at Assets/3DGamekit/Scripts/Game/Player/PlayerController.cs:198)
alt text
Answer by mleegamemaker · Dec 24, 2020 at 05:44 PM
i got visual studio after an hour of installation errors and here are the two lines of code that are the error.
Vector3 forward = Quaternion.Euler(0f, cameraSettings.Current.m_XAxis.Value, 0f) * Vector3.forward;
SetTargetRotation();
Your answer
Follow this Question
Related Questions
Noob problem with Photon 0 Answers