Skip to main content

spawn_actor_raw

Function spawn_actor_raw 

Source
pub fn spawn_actor_raw(
    world: UObjectHandle,
    class: UClassHandle,
    transform_buf: &[u8],
    owner: UObjectHandle,
) -> UikaResult<UObjectHandle>
Expand description

Spawn an actor in the world.

  • world: the UWorld handle
  • class: the UClass of the actor to spawn
  • transform_buf: raw bytes of an FTransform struct
  • owner: optional owning actor (null handle for none)