Forum rules - please read before posting.

Bug: Sound not heard for instantiated prefabs

After upgrading to version 1.43, I noticed I don't hear any sound for Sound objects that are instantiated at runtime. I noticed StateHandler now controls Sound objects and it gathers them in the GatherObjects() method. Problem is, at the time GatherObjects() runs, my Sound objects have not been instantiated yet so they are not being gathered and thus, later on, they are not being controlled once they have been instantiated. I tried directly calling GatherObjects() again after I finish instantiating my prefabs but, although it does work, I doesn't seems to be the right way to do things.

Thanks.

Comments

  • That function is called whenever the Object: Add or remove Action has finished doing it's thing.  If you're adding such things through script, then yes - you'll have to call GatherObjects after doing so.
  • Ok, if that's the way then I'll do just that.

    Thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.