Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IsInitialized is false after SetActive on parent object
#1
Hi. I'm using (maybe incorrectly) SetActive on a game object that contains a CurvySpline (child of a child) and a CurvyLineRenderer (child). The idea is to quickly hide the curve's line when not needed, then show it again. However after calling SetActive(false), and then SetActive(true), it takes a few frames before CurvySpline::IsInitialized is true again. Why is that?

Eventually I'm going to have some other objects placed along the line (for now I'm just going to do that manually) that will live in the same parent object, so would like to just be able to deactivate/activate the parent object.

Thanks

-M
Reply
#2
Hi,
Which Curvy version do you use?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
(04-25-2018, 09:52 AM)_Aka_ Wrote: Hi,
Which Curvy version do you use?

The README has version 2.2.3 at the top under VERSION HISTORY
Reply
#4
The issue you described existed because of some complex initialization flow. Things have been simplified in 2.2.4.
So just update your Curvy copy, and you will have the issue fixed.
For future reference:
You can find which Curvy version you have right inside the editor, by clicking on the Options button in the Curvy toolbar https://curvyeditor.com/documentation/toolbar#curvy_options
Also, and to make the debugging process more efficient, please report any future bug through the "Report bug" button in that same toolbar. This will send a bug report with useful data included, such as the Curvy version.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Thanks. I updated to 2.2.4 but then (without changing anything else) had an issue with my bezier curve being drawn straight instead of with the bit of curve I expect. I restored 2.2.3 for now since I can work around the SetActive issue for now. When I can update to 2.2.4 again I'll try to sort out what was going on and let you know.
Reply
#6
Do you have a scene you can share with me where I can see the bezier issue? That would help a lot debugging this.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#7
(05-04-2018, 11:49 AM)_Aka_ Wrote: Do you have a scene you can share with me where I can see the bezier issue? That would help a lot debugging this.

Sorry, it's from a large project I can't share. If it persists when I get back to this, I'll try and recreate in a test project.

BTW, FYI, I don't get email notifications about replies to this thread. I have the " Subscribe and receive email notification of new replies" option enabled on this thread, and they're not in my spam folder (gmail).
Reply
#8
(05-09-2018, 04:48 PM)mgstauff Wrote: BTW, FYI, I don't get email notifications about replies to this thread. I have the " Subscribe and receive email notification of new replies" option enabled on this thread, and they're not in my spam folder (gmail).

Hmm, that's weird. Maybe a bug in the forum. Please let me know if you do receive an email notification in the future. I will dig this issue at a later date. Thanks for notifying me.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 3 08-30-2024, 09:19 AM
Last Post: _Aka_
  Player move with object mcarman 4 8 07-29-2024, 06:49 PM
Last Post: mcarman
  Removing the objects behind an object alms94 6 11 12-06-2023, 09:31 PM
Last Post: _Aka_
  Getting object on spline Position when Spline has coordinates larger than 2000 velikizlivuk 5 11 09-05-2023, 01:01 PM
Last Post: velikizlivuk

Forum Jump: