场景视图光线投射
2015-12-17 本文已影响26人
Babybus_Unity
//create a ray to get where we clicked in the scene view and pass in mouse position
Ray worldRay = HandleUtility.GUIPointToWorldRay(Event.current.mousePosition);
//create a ray to get where we clicked in the scene view and pass in mouse position
Ray worldRay = HandleUtility.GUIPointToWorldRay(Event.current.mousePosition);