I want to make script which is used for modelling or designing smth. Like 3Dmax , when i create cube in 3Dmax , i can drag the corner of cube. i mean that i want to make modelling in Unity3D like 3Dmax. Is it possible? Do you have any code (C# or js)? Also i need some suggestions or examples of you…
there is more specifically explain. Here this video
if (Physics.Raycast (Event.current.mouseRay.origin, Event.current.mouseRay.direction, out hitInfo))
//after changing
if (Physics.Raycast (Event.current.mousePoisition, Event.current.mousePosition, out hitInfo))
and gived another error during prefab cube on scene…
Well you could skim the code and see if there is an obvious call missing somewhere. Other than that, you could sprinkle around Debug.Log messages around your start and end calls - to notice if an end call is sometimes not being executed, when its matching start call has been.
So maybe your initial question wasn’t really accurate? Are you looking to write a script that does this or are you looking for an already written script?