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
  Scene 51: Dynamic track between two points wallflower6 3 8 08-19-2024, 08:18 AM
Last Post: _Aka_
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  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_

Forum Jump: