Why using the old input system again?

In an older video where we instantiate units, we used the IPointerClickHandler to click on the UnitSpawner to spawn new units, but in the Health UI video, Nathat has us use the old input system.

Why didn’t we just use the new input system and use the IPointerEnterHandler and IPointerExitHandler instead? We already have a Physics Raycaster configured on the camera and we already have colliders on the units and buildings.

Hi there,
This is mostly down the Nathan’s preference, and wanting to show a few different methods during the course.
We could probably dive further into which methods perform better in which cases, but a lot of the time it’s just whichever you prefer.

1 Like

I see thank you for explaining.

Privacy & Terms