If you’re reading this, there probably aren’t very many posts yet. But don’t worry, you can be the first! Either create a new post or just reply to this one to say ‘hi’.
No movement. I finished the lecture and the code compiles but I can’t move. every frame I get the error "NullReferenceException: Object reference not set to an instance of an object
RPG.CameraUI.CameraRaycaster.RaycastForPotentiallyWalkable (Ray ray) (at Assets/_CameraUI/CameraRaycaster.cs:68)
RPG.CameraUI.CameraRaycaster.PerformRaycasts () (at Assets/_CameraUI/CameraRaycaster.cs:44)
RPG.CameraUI.CameraRaycaster.Update () (at Assets/_CameraUI/CameraRaycaster.cs:34)
"
from this line in camera raycaster onMouseOverPotentiallyWalkable (hitInfo.point);
I’m getting the same.
Edit: I used the rename function to change the name of the delegate to “informLayerObservers” and the error went away. However, I’m unable to get cursor changes. AH,! I hadn’t attached the raycaster script to the camera. Try that.