|
I'm creating a tool that instantiate spawnPoint by clicking a GUILayout.Button. I want to instantiate it at the middle of the Editor Scene View and not always at Vector3(0f,0f,0f). The tool is not for InGame only for production. Thank you! Just to help other to have an idea of how we can do it. The function instantiate an object on top of the gameobject that raycast hit from the middle of the Editor Scene view. (Little work to do on it, because if the hitted GameObject have a X or Z rotation, the instantiated object isn't exactly positionned on top of it)
(comments are locked)
|
|
You could use If you're in-game, you'll usually want to do this with Nice! Thank a lot. Just need to add some line to ajust it well.
Apr 17 '12 at 12:05 AM
Crazydadz
(comments are locked)
|
