AMagicLeapSharedWorldGameMode::SelectChosenOne

Select a certain client to be the "chosen-one" or pseudo-authoritative for this shared world session.

Windows
MacOS
Linux

References

Module

MagicLeapSharedWorld

Header

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

Include

#include "MagicLeapSharedWorldGameMode.h"

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, BlueprintNativeEvent, BlueprintAuthorityOnly,
          Category="AR Shared World|Magic Leap")
void SelectChosenOne()

Remarks

Select a certain client to be the "chosen-one" or pseudo-authoritative for this shared world session.

Means that this client is responsible for sending the list of it's pin transforms (in world space so its own alignment is unaffected) to the server via AMagicLeapSharedWorldPlayerController::ServerSetAlignmentTransforms(). Everyone will align to this client's coordinate space using those pin transforms. This function is a BlueprintNativeEvent, override to implement a custom behavior. Default implementation -> client with best confidence values for selected shared pins.

Returns

Owning player controller of the client selected as the chosen one.

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