Open UtkarshMoholkar opened 1 year ago
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 https://github.com/20tab/UnrealEnginePython/issues/34#issuecomment-1505911411
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 https://github.com/20tab/UnrealEnginePython/issues/34#issuecomment-1505911411