The 3rd in a series of Unity tutorials. In this tutorial we work through the basics of how to use a Raycast to detect a position in the 3D World space with the mouse and then place an object in that location. Following this, all the code is refactored to make it 'game' ready. It does assume some basic Unity background but even beginners shouldn't struggle too much :)
Look out for Part 4 of this tutorial in the future.
All code and description will be available on :
Unity,Islanders,C#,Indiedev,Indie Dev,position,screen,world space,position to world,world to screen point,unity3d,gamedev,game design,game development,mouse,click,input,interact,raycast,layermask,bounds,pivot point,unity tutorial,make game with unity,unity 3d,raycasthit,ScreenPointToRay,LayerMask,GameObject,Bounds,SetActive,Normals,Normal,Renderer,Refactor,Refactoring,placement,Instantiate,Prefab,
0 Comments