Server Set Alignment Transforms

Server Set Alignment Transforms

Windows
MacOS
Linux

Sets list of transforms to be used by all clients to align coordinate spaces.

This list is redirected to AMagicLeapSharedWorldGameState which performs the replication. Bind an event to AMagicLeapSharedWorldGameState::OnAlignmentTransformsUpdated to get a notification when new alignment transforms are available. If performing shared world alignment on-the-fly (i.e. without any prior setup like in a museum app), these transforms should be sent by a single selected client. Apps can make use of the "chosen one" client for this purpose. Override AMagicLeapSharedWorldGameMode::SelectChosenOne() to select which of the connected clients should send the alignment transforms. By default the first connected client is considered the "chosen one".

See: AMagicLeapSharedWorldGameMode::SelectChosenOne() See: AMagicLeapSharedWorldGameState::OnAlignmentTransformsUpdated See: AMagicLeapSharedWorldGameState::CalculateXRCameraRootTransform()

Target is Magic Leap Shared World Player Controller

Server Set Alignment Transforms
Target
In Alignment Transforms

Inputs

In
Exec
Target
Magic Leap Shared World Player Controller Object Reference
In Alignment Transforms
Magic Leap Shared World Alignment Transforms Structure

Outputs

Out
Exec
Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss