subgraphs and subgraph references not working (BTW adding invoice # is erroring out)

EB2019

New member
Using a baked GameObject in a SubScene to instantiate an entity with a State Designer state machine attached works fine.

The issue starts when I try to instantiate an entity with a subgraph preset attached to that state machine. That does not seem to work at all. I have also tried using SubgraphReference, but it does not behave as expected, even after calling ReevaluateSubgraphReferences.

At this point, it seems like State Designer works reliably in ECS as long as I avoid subgraph-related concepts. The problem is that without subgraphs, organizing and reusing states is going to get messy very quickly unless I can find a fix..
 
Thanks for posting the details.

What you're seeing is expected. Subgraphs are currently not supported within a pure ECS workflow due to ECS object reference limitations. This is documented here: https://opsive.com/support/documentation/state-designer/subgraphs/

The underlying state machine, SharedVariables, runtime debugging, and all other ECS functionality are fully supported. The limitation is specifically around Subgraphs, as they rely on object references that don't map cleanly to ECS.

We're actively exploring alternatives that would provide similar organizational and reuse benefits within a pure ECS workflow, but so far we haven't found an approach that provides the same quality of workflow as the GameObject implementation.

Given that your Asset Store review was based on Subgraph support within ECS, you may want to update it to reflect that this is a documented ECS limitation rather than an issue with the State Designer implementation itself.

Let me know if you have any questions
 
Just giving you a heads up that I am working on a solution for your use case where you just want to inject a subgraph into a pure-ECS state machine. This should be doable. I'll send you a new version as soon as I have it implemented.
 
Just giving you a heads up that I am working on a solution for your use case where you just want to inject a subgraph into a pure-ECS state machine. This should be doable. I'll send you a new version as soon as I have it implemented.
Great, thanks!
 
Hello - I sent you the changed file through email last week. I should be able to release that version later this week.
 
SubgraphReferences are officially now working! FYI, I am using ECS behavior designer for decision making + state transitions, and ECS state designer for running the different state subgraphreferences when a state transition is requested by behavior designer. Other than UI, the majority of the world lives off of entity systems so these subgraphs were crucial to help organize dozens of states for agents and other objects.

Thanks
 
Back
Top