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

AMRUtilityKitPositionGenerator Class

Extends AActor
Position generator that can be used to generate random positions on the surface in a specific room or any room.
It contains methods to generate random positions on the surface of a given spawn location, while ensuring that the generated positions are at least MinDistanceToEdge away from any edges, if it should run on start when MRUK initializes and follow the other settings specified in SpawnSettings.

Fields

Whether GenerateRandomPositionsOnSurface() should be called automatically after the mixed reality utility kit has been initialized
Settings that should be used when generating random positions.

Static Member Functions

static bool CanSpawnBox
( const UWorld * World,
const FBox & Box,
const FVector & SpawnPosition,
const FQuat & SpawnRotation,
const FCollisionQueryParams & QueryParams,
ECollisionChannel CollisionChannel )

Member Functions

Generates a set of random positions on the surface of a given spawn location, while ensuring that the generated positions are at least MinDistanceToEdge away from any edges and follow the other settings specified in SpawnSettings.
Parameters
OutTransforms
An array of transforms representing the generated positions.
Returns
A boolean value indicating whether valid positions were found. If no valid positions could be found, OutTransforms will be empty.
Generates a set of random positions on the surface of a given spawn location, while ensuring that the generated positions are at least MinDistanceToEdge away from any edges and follow the other settings specified in SpawnSettings in the give room.
Parameters
Room
The room where the positions should be generated in.
OutTransforms
An array of transforms representing the generated positions.
Returns
A boolean value indicating whether valid positions were found. If no valid positions could be found, OutTransforms will be empty.

Protected Functions

virtual void BeginPlay ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon