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
  How to stop spline refreshing when a control point is deleted or removed? Beaver_Boy 4 6 07-23-2022, 11:24 AM
Last Post: _Aka_
  Scene 51 questions lukasynthetic 3 12 06-22-2022, 04:12 AM
Last Post: _Aka_
Question Generating a path from selected point to the beginning of spline on a closed spline? Zendariel 5 410 10-29-2021, 01:57 PM
Last Post: _Aka_
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 1,260 06-09-2021, 12:42 PM
Last Post: _Aka_

Forum Jump: