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

I am using multithreading to Spawn a Blueprint Actor and Unreal Engine is crashing suddenly when the spawn function gets called. #890

Open
UtkarshMoholkar opened this issue Apr 12, 2023 · 0 comments

Comments

@UtkarshMoholkar
Copy link

UtkarshMoholkar commented Apr 12, 2023

          I am using multithreading to Spawn an Blueprint Actor and Unreal Engine is crashing suddenly when the spawn function gets called.

def begin_play(self):
self.spawn_thread = Thread(target=self.spawn_process)
self.spawn_thread.start()

def spawn_process(self):
time.sleep(10)
self.world = self.uobject.get_world()
self.spacecraft_object = self.world.actor_spawn("PyActor", FVector(-300, 0, 500), FRotator(0, 0, 0))

Originally posted by @UtkarshMoholkar in #34 (comment)

@UtkarshMoholkar UtkarshMoholkar changed the title I am using multithreading to Spawn an Blueprint Actor and Unreal Engine is crashing suddenly when the spawn function called. I am using multithreading to Spawn a Blueprint Actor and Unreal Engine is crashing suddenly when the spawn function gets called. Apr 12, 2023
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

1 participant