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


Messages In This Thread
IsInitialized is false after SetActive on parent object - by mgstauff - 04-25-2018, 03:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 934 09-23-2025, 09:33 AM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 3,016 02-04-2025, 09:30 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,714 08-30-2024, 09:19 AM
Last Post: _Aka_
  Player move with object mcarman 4 2,966 07-29-2024, 06:49 PM
Last Post: mcarman

Forum Jump: