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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Connection "next' control point jh092 3 15 11-22-2023, 11:47 AM
Last Post: _Aka_
  Spline.Length not updated unless I add a point to spline (or modify it) first. _RicO 3 6 08-26-2023, 08:41 AM
Last Post: _Aka_
  How do I get the closest Spline Control Point Lupos 2 16 05-12-2023, 01:59 AM
Last Post: Lupos

Forum Jump: