Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select Point in Scene
#1
Hi,

I have a custom EditorWindow in which I would like to get the position of a control point. 
1) How can I select a control point on a curve? I only can select the whole curve when clicking in the scene?
2) Can I register to some event to get the point that is selected? 

Thank you
Reply
#2
Hi
1) You are supposed to be able to select a single control point. Can you tell me what Unity and Curvy versions you are using? Also do you have reproduction steps/project to share?
2) Control points are regular game objects, so the usual unity methods to get selection and events apply here too. Please look at the Selection class: https://docs.unity3d.com/ScriptReference/Selection.html
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  12_Train junction point richardzzzarnold 5 2,665 04-16-2025, 02:19 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,461 03-18-2025, 10:11 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 2,356 02-04-2025, 09:31 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 1,227 12-10-2024, 10:14 PM
Last Post: _Aka_

Forum Jump: