I have searched and searched, but I cannot figure out how to raycast within the scene view from the editor camera in a JS script. I have a script that extends EditorWindow and I figured out that you cannot use the function OnSceneGUI within an EditorWindow class.
I decided I would try to make a regular editor class and then send values between them, but I could not get that to work. Is there any way I could make a JS script that would update every frame from within scene view? How could I send a message between this script and EditorWindow class? I haven’t done much of anything within the editor before so it is kind of confusing.
I was able to get unity’s example to work with drawing a line connecting two objects, but this would only update the frame when the object was clicked. Anyway, if anyone could point me in the right direction, that would be great. Thanks in advance.