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
Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback