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

Code:
while (!myCurvyGenerator.IsInitialized)
            {
                yield return null;
            }
            myCurvyGenerator.Refresh();

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); ?
Reply
#2
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.
   
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation CGResourceHandler: Missing loader for resource 'GameObject' on Device vatan 0 18 Yesterday, 07:13 AM
Last Post: vatan
  How to rotate generator asteroids patndan74 6 235 05-08-2025, 10:07 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 280 12-10-2024, 10:14 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 526 10-07-2024, 05:36 PM
Last Post: _Aka_

Forum Jump: