Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
refresh generator on gameobject.setactive
I'm trying to hide a curvy generator and its respective contents, change the path spline then unhide the generator to see the result.

while (!myCurvyGenerator.IsInitialized)
                yield return null;

The problem I'm having is that it doesn't refresh my objects on the rasterize path, I'm looking for a way to make these follow the new path.

Is there another approach to hiding generators and their contents that allow for refresh on gameObject.SetActive(true); ?
If you want to enable and disable a curvy generator at runtime, use the Active property of CGModule instead of calling gameObject.SetActive() on the whole object.
In the UI, the Active property is represented by the checkbox in the upper left corner of each CG module.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads...
Thread Author Replies Views Last Post
  One generator for multiple paths justinms66 5 372 08-07-2018, 07:27 PM
Last Post: _Aka_
  Move spline attached to gameobject. Juwdah 6 1,576 06-07-2018, 06:01 PM
Last Post: _Aka_
  IsInitialized is false after SetActive on parent object mgstauff 7 1,152 05-09-2018, 06:24 PM
Last Post: _Aka_
  Path Controller GameObject parent / attach to another to another Moving GameObject. chiako3D 4 1,057 04-24-2018, 06:47 AM
Last Post: chiako3D

Forum Jump: