New answers tagged

0

You named your MonoBehaviour class "Cursor" so when you write the word "Cursor" inside the body of that class, the compiler thinks you're trying to refer to your MonoBehaviour (which has a method called Start, and no method called SetCursor) Solution: name your class something that does not collide with other types you want to use, like ...


3

As with every problem, there are many ways to come to a solution. But one solution I usually find the easiest to implement is: Add an EventSystem to your scene. Which happens automatically when you add a Canvas for your UI. Add a Physics Raycaster component to your camera (Physics Raycaster 2D if you want to use 2d colliders) Add an appropriately shaped ...


Top 50 recent answers are included