- Home /
Handles.DrawLine refresh rate in scene view
I'm trying to get good refresh rate for the draw line inside scene view. The weird thing is that It's getting refreshed every frame only if i hold mouse button. But if i just place mouse position on some area, the line refreshes only after 1 or 2 seconds.
Here's an example code:
Handles.DrawLine (someRayHit.point,someGameObject.transform.position);
Visualisation: http://gyazo.com/3dab6e67310f90da6218372c9b22207d
Comment
Best Answer
Answer by ArkaneX · Sep 21, 2013 at 03:16 PM
Try to force scene view refresh by calling HandleUtility.Repaint at the end of OnSceneGUI. I don't know though if this won't affect performance of complicated scenes.
Your answer
Follow this Question
Related Questions
Color Handles.DrawLine 1 Answer
Draw line between two clicked points. 1 Answer
How to create persistent handles in Editor Scene View? 1 Answer
Draw a line in Game View? 5 Answers