Is there any mean to create connections and set rotation/position synchronization by script? I managed to create a connection between two control points and setting the ConnectionSyncRotation/Position property does indeed change the connection color to corresponding synchronization type but it has no effect on the curve... maybe I should call some sort of refresh but I couldn't find it...?
Connections and control point synchronization by script
|
01-21-2016, 07:40 AM
Okay, I think I've found what I was looking for: CurvySplineSegment.RefreshTransform(...) with all parameters set to true.
01-22-2016, 01:03 PM
Once you've established a connection, a change to a participating CP will refresh the connection. I.e. change the position of an involved CP and the connection will force all it's CP's to sync position (if they have the corresponding flag set).
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
OnAfterControlPointAdded - Control Point is null | jh092 | 5 | 211 |
02-04-2025, 09:31 PM Last Post: _Aka_ |
|
How to generate gameobject on the control point | Yang Yi | 1 | 67 |
12-10-2024, 10:14 PM Last Post: _Aka_ |
|
Procedural Connections | Janooba | 3 | 69 |
10-23-2024, 02:53 PM Last Post: _Aka_ |
|
How to modify Input GameObject's transformation properties by script. | j95677 | 2 | 51 |
07-05-2024, 06:28 PM Last Post: j95677 |