Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] LegacyConnectionAny and GetAllConnectionsControlPoints();
#2
Solved: Used a different approach.

Code:
public override void OnClick() {
           var selectedCP = DTSelection.GetAs<CurvySplineSegment>();
           var cps = new List<CurvySplineSegment>();
           var connection = selectedCP.Connection;
           cps.Add(selectedCP);
           if (connection != null) {
               foreach (var ccp in connection.ControlPoints) {
                   if (!cps.Contains(ccp)) {
                       cps.Add(ccp);
                   }
               }
           }
(Henry Ford) Each hour more of searching is each hour less of your live time.

Reply


Messages In This Thread
RE: [Solved] LegacyConnectionAny and GetAllConnectionsControlPoints(); - by Trainzland - 12-25-2015, 02:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Up Assembly Definitions (Solved) lacota 3 6 06-01-2023, 11:04 AM
Last Post: _Aka_
  NullReferenceException ComponentPool.cs:36 [SOLVED] ionside 6 8,632 01-11-2018, 12:48 AM
Last Post: _Aka_
  GetComponent<SplineController>() doesn't work? [SOLVED] ionside 0 2,244 07-10-2016, 02:37 AM
Last Post: ionside
  [Solved] SplineController skips on CurvySpline.ControlPoints[0].Delete() cpoll 6 10,614 02-15-2016, 04:56 PM
Last Post: cpoll

Forum Jump: