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
-
Create an extension plugin.
-
In the
RegistrableAssetsdirectory, create a new data asset that inherits from SkrAutoSpawnableActorDescription. -
In the Spawning Context field, select one of the available contexts (see below).
-
In the ActorClassToSpawn field, click + to create a blueprint that inherits from
Actor. Save it in a separate directory (not inRegistrableAssets).
Available Spawning Contexts
|
Context |
Definition |
|---|---|
|
|
Actor spawned when the world is created (works outside Skyreal VR, even in the loading screen) |
|
|
Actor spawned when VR is activated and destroyed when VR is disabled |
|
|
Actor spawned when VR is disabled and destroyed when VR is activated |