I have an issue with runtime installation of the Graphs. I’ve noticed that Initilize() function is called only once in the GraphOwner. So it means that if I set “preinitialize subgraphs” to true and I will have a graph assigned in the editor already or if I have a bound graph, it will preinitialize them. But if I call “StartBehaviour” or “SwitchBehaviour” in runtime, it won’t actually preinitialize subgraphs. I would expect that if I have any settings on the graph owner, any graph that I start should behave the same way. But really, Initialize() is only called for a bound or pre-set graph and those settings work only on those. Is this an expected behaviour or maybe I am missing something?
Hi again. Thanks for a quick reply. Yeah, I’ve checked and it does work.
I did although changed the code to just instantiate and destroy the Owner. It does create additional garbage, but it’s just safer this way for my use case.