Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving multiple controllers at once
#7
Quote:Yep, in hell until Wednesday. Then I will be in purgatory (installing everything on my new pc) for some time.
Oh man, I had to change to win10 last year and it was so much trouble setting up everything to not annoy you, plus of course Unity started fussing too. So I hope it goes better for you and everything goes smooth. Tongue 


Quote:var selectedControllers =Selection.transforms.Select(t => t.gameObject.GetComponent<SplineController>()).Where(c=> c != null).ToList();
See this shit here, I tried so many variations of Selection. like adding .length or GetComponent or GetFiltered and even trying to save that to an array and count that, but nothing worked together in a way that was useful. I also read lots of posts and articles and none even suggested how to get anything close to what you posted. How are you even supposed look it up? Huh 

Well, I will fiddle around with this now and see what I can come up with. Thanks.
Reply


Messages In This Thread
Moving multiple controllers at once - by Lupp_ - 01-15-2020, 07:46 PM
RE: Moving multiple controllers at once - by Lupp_ - 01-19-2020, 04:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Distance travelled across multiple splines jh092 1 7 02-23-2024, 09:44 AM
Last Post: _Aka_
  Best practice for controllers slowing down/speeding up along the spline Curry 1 5 08-06-2023, 09:47 PM
Last Post: _Aka_
  Moving object down or up the spline using gravity velikizlivuk 6 19 07-26-2023, 10:06 PM
Last Post: _Aka_
  Multiple Splines and Generators Performantly for Road System drock 1 6 07-17-2023, 10:31 AM
Last Post: _Aka_

Forum Jump: