Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find connections
#1
Hi, how could I get a list of connections ?

Regards
Reply
#2
Hi,
You can use the FindObjectsOfType method from Unity's API (https://docs.unity3d.com/ScriptReference...fType.html) to find all objects of type CurvyConnection.
You can also use GetComponentsInChildren (https://docs.unity3d.com/ScriptReference...ldren.html) on the _CurvyGlobal_ object.
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
#3
Thanks, actually I think what I should have asked is how can I tell if a control point is a connection
Reply
#4
Hi,
yourControlPoint.Connection is the property you need. If the control point does not have a connection, that property will return null
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
#5
Thanks, that was a lot easier than I thought It would be
Reply
#6
You are welcome
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
  Procedural Connections Janooba 3 451 10-23-2024, 02:53 PM
Last Post: _Aka_
  Connections doesn't work in split scenes nehvaleem 4 574 05-29-2024, 07:31 AM
Last Post: _Aka_
  Connections Problem Juton 3 432 03-06-2024, 10:41 AM
Last Post: _Aka_
  Are connections pooled? Lupos 1 258 05-09-2023, 09:18 AM
Last Post: _Aka_

Forum Jump: