09-05-2019, 10:06 AM
Hi, how could I get a list of connections ?
Regards
Regards
How to find connections
|
09-05-2019, 10:06 AM
Hi, how could I get a list of connections ?
Regards
09-05-2019, 11:59 AM
Hi,
You can use the FindObjectsOfType method from Unity's API (https://docs.unity3d.com/ScriptReference/Object.FindObjectsOfType.html) to find all objects of type CurvyConnection. You can also use GetComponentsInChildren (https://docs.unity3d.com/ScriptReference/Component.GetComponentsInChildren.html) on the _CurvyGlobal_ object. 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.
09-12-2019, 10:08 AM
Thanks, actually I think what I should have asked is how can I tell if a control point is a connection
09-12-2019, 10:45 AM
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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
09-12-2019, 10:57 AM
Thanks, that was a lot easier than I thought It would be
09-12-2019, 11:08 AM
You are welcome
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Are connections pooled? | Lupos | 1 | 2 |
05-09-2023, 09:18 AM Last Post: _Aka_ |
|
How to merge intersecting meshes at spline connections? | Reign_of_Light | 2 | 4 |
03-20-2023, 08:36 AM Last Post: Reign_of_Light |
|
Find intersection point | soccertrash | 5 | 28 |
10-22-2022, 05:46 PM Last Post: _Aka_ |
|
Null Ref when using Connections | RKTRAINS | 1 | 2 |
10-10-2022, 08:49 AM Last Post: _Aka_ |