02-02-2020, 04:57 PM
So after getting side tracked for way too long trying to learn about ways to get around weird quirks in Unity, I'm finally at the point there I can interact with the controllers. Unfortunately I don't understand the syntax on how to do that.
What I want it to make is:
What I want it to make is:
- A foreach loop and store all the absolute positions of the controllers from this, and store it in a new array.
Code:
var selectedControllers = Selection.transforms.Select(t => t.gameObject.GetComponent<SplineController>()).Where(c => c != null).ToList();
- How to set those objects to a new absolute position based on the new modified array.
- How to get the end point of the controllers splines as an absolute value.