API reference
API reference
Select your platform
No SDKs available
No versions available

FMRUKSpawnActor Struct

This struct represents a configuration for spawning an actor in the scene.
It contains properties to specify the class of the actor to spawn, whether to match the aspect ratio of the volume, whether to calculate the facing direction of the actor, and what scaling and alignment modes to apply to the actor.

Fields

The class of actor to spawn.
When match aspect ratio is enabled then the actor will be rotated to try and match the aspect ratio of the volume as closely as possible. This is most useful for long and thin volumes, keep this disabled for objects with an aspect ratio close to 1:1. Only applies to volumes.
When calculate facing direction is enabled the actor will be rotated to face away from the closest wall. If match aspect ratio is also enabled then that will take precedence and it will be constrained to a choice between 2 directions only. Only applies to volumes.
Set what scaling mode to apply to the actor. By default the actor will be stretched to fit the size of the plane/volume. But in some cases this may not be desirable and can be customized here.
Set what alignment mode to apply to the actor. By default the actor will be aligned that its bounding box matches the one from the anchor.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon