Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawn a pyactor in begin_play doesn't works fine. #883

Open
Beanecessar opened this issue May 13, 2022 · 1 comment
Open

Spawn a pyactor in begin_play doesn't works fine. #883

Beanecessar opened this issue May 13, 2022 · 1 comment

Comments

@Beanecessar
Copy link

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

@davis-openai
Copy link

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants