Documentation Home
Breadcrumbs

Actor

Auto Spawnable — Actor

Auto spawnable blueprint actors are used with the extension system to automatically create actors based on context. Most commonly, they are used to add Desktop-only or VR-only behavior without manually checking the current VR state.

How to Declare an Auto Spawnable Actor

  1. Create an extension plugin.

  2. In the RegistrableAssets directory, create a new data asset that inherits from SkrAutoSpawnableActorDescription.

  3. In the Spawning Context field, select one of the available contexts (see below).

  4. In the ActorClassToSpawn field, click + to create a blueprint that inherits from Actor. Save it in a separate directory (not in RegistrableAssets).

Available Spawning Contexts

Context

Definition

BeginPlay

Actor spawned when the world is created (works outside Skyreal VR, even in the loading screen)

VR

Actor spawned when VR is activated and destroyed when VR is disabled

Desktop

Actor spawned when VR is disabled and destroyed when VR is activated