Community
Hi everyone!
I've been exploring how I can implement a function that can return the unit the mouse clicks on.. I've been looking at the functions in the Lua API, so far the ones that have caught my attention have been Camera.world_to_screen() and Camera.screen_to_world(). Also potentially using some form of raycast from the camera, though I can think of a few issues with that. Any ideas or examples on how to accomplish this?
Cheers,
Kaine
Solved! Go to Solution.
Solved by _robbs_. Go to Solution.
Can't find what you're looking for? Ask the community or share your knowledge.