Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I modify generators during gameplay ?
#2
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?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: How can I modify generators during gameplay ? - by _Aka_ - 09-02-2021, 12:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to modify Input GameObject's transformation properties by script. j95677 2 1,772 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,260 08-26-2023, 08:41 AM
Last Post: _Aka_
  Multiple Splines and Generators Performantly for Road System drock 1 1,611 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,205 11-29-2022, 06:59 PM
Last Post: _Aka_

Forum Jump: