Spawn prefab on UI button click
Hey guys, I am trying to create a gmod spawn menu and I need one of the UI buttons to spawn a prefab where the camera is looking. I am completely clueless when it comes to code and I really need help with this as I can't find a single tutorial online outlining this, thanks.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612233715im_/https://answers.unity.com/themes/thub/images/avi.jpg)