AMagicLeapSharedWorldPlayerController::ServerSetAlignmentTransforms

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

Windows
MacOS
Linux

References

Module

MagicLeapSharedWorld

Header

/Engine/Plugins/Lumin/MagicLeapPassableWorld/Source/MagicLeapSharedWorld/Public/MagicLeapSharedWorldPlayerController.h

Include

#include "MagicLeapSharedWorldPlayerController.h"

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Reliable, Server, Category="AR Shared World|Magic Leap")
void ServerSetAlignmentTransforms
(
    const FMagicLeapSharedWorldAlignmentTransforms & InAlignmentTransforms
)

Remarks

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 Also

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