#It is crashing like this. The processor

1 messages · Page 1 of 1 (latest)

rotund wren
fair marlin
#

Hmm, can you try replacing

ProcessorRequirements.AddSubsystemRequirement<UMassSpawnerSubsystem>(EMassFragmentAccess::ReadWrite);

by

EntityQuery.AddSubsystemRequirement<UMassSpawnerSubsystem>(EMassFragmentAccess::ReadWrite);
rotund wren
#

sure lets give it a try

fair marlin
#

Also, can you get the subsystem from the query context?

#

Instead of capturing it and passing it to the lambda function

rotund wren
#

nop it is the same error

fair marlin
#

I can't debug it myself right now, but there's a chance this has to be executed in a deferred mass command. If you call SpawnEntities inside the lambda body of a custom mas deferred command do you still get the same error?

rotund wren
#

looks liek the MassSpawner is a Sync function, not allowed during processing phases, I should use an async / deferred version, but I haven't seen any using an entity config

#

I need to investigate how to do that, haven't tried that. Will come back when I figure the custom command

#

yea the command actually works, I wonder if is ok to use it like this

#

thanks a lot!!