Open Beanecessar opened 2 years ago
Just in case anyone else runs into this, you have to specify the module and class during the spawn otherwise it is initialized without them:
world.actor_spawn(ue.find_class('PyActor'), PythonModule='mymodule', PythonClass='myclass')
I was follow the quick example and create a pyactor in runtime, then set the property just like the example SuperHero. But the python script of SuperHero doesn't run. Is there any additional works should I do? BTW, the example SuperHero has a mistake: Fvector -> FVector