Node Editor Select Handles.Bezier( )?
Im creating a Node Editor and I Draw the transitions with Handles.DrawBezier( ). I want to be able to select these lines. How would I go about doing this? It looks like this:
I want to be able to select one of those lines Thank you for any help
screen-shot-2020-10-28-at-113003-am.png
(93.0 kB)
Comment
Answer by Reid_Taylor · Oct 28, 2020 at 09:29 PM
Figured it out!
For any one who can't figure it out I add this:
if (Handles.Button((start + end) * 0.5f, Quaternion.identity, 4, 8, Handles.RectangleHandleCap))
{
}
this will put a button in the middle of the line and when its clicked the stuff in the if statement will execute
Your answer
Follow this Question
Related Questions
re historic GUI system 1 Answer
Input Field not getting selected? 0 Answers
How can I stop object handles from creeping away from the object? 0 Answers
Math Library for bezier curves. 0 Answers