Module |
|
Header |
/Engine/Plugins/Lumin/MagicLeapPassableWorld/Source/MagicLeapSharedWorld/Public/MagicLeapSharedWorldGameMode.h |
Include |
#include "MagicLeapSharedWorldGameMode.h" |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, BlueprintNativeEvent, BlueprintAuthorityOnly,
Category="AR Shared World|Magic Leap")
void SelectChosenOne()
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.
Owning player controller of the client selected as the chosen one.