Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I modify generators during gameplay ?
#3
(09-02-2021, 12:52 PM)_Aka_ Wrote: Hi
You will have to get the InputSplinePath module instance you are interested in, then modify its Spline property.
To get the InputSplinePath instance, you can use the usual Unity methods (such as GetComponent<InputSplinePath>()) or the CurvyGenerator.GetModule... methods while setting the optional parameter to true.
Did this work?

Thanks for the fast response, this indeed worked Smile
Reply


Messages In This Thread
RE: How can I modify generators during gameplay ? - by codehawk64 - 09-03-2021, 10:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to modify Input GameObject's transformation properties by script. j95677 2 2,279 07-05-2024, 06:28 PM
Last Post: j95677
  Spline.Length not updated unless I add a point to spline (or modify it) first. _RicO 3 2,913 08-26-2023, 08:41 AM
Last Post: _Aka_
  Multiple Splines and Generators Performantly for Road System drock 1 2,070 07-17-2023, 10:31 AM
Last Post: _Aka_
Question How to modify Example 12 to work bi-directionally and more than 2 connected splines Mambosa 3 2,904 11-29-2022, 06:59 PM
Last Post: _Aka_

Forum Jump: