Module |
|
Header |
/Engine/Plugins/Lumin/MagicLeapPassableWorld/Source/MagicLeapARPin/Public/MagicLeapARPinComponent.h |
Include |
#include "MagicLeapARPinComponent.h" |
Source |
/Engine/Plugins/Lumin/MagicLeapPassableWorld/Source/MagicLeapARPin/Private/MagicLeapARPinComponent.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="ContentPersistence|MagicLeap")
bool PinSceneComponent
(
USceneComponent * ComponentToPin
)
Pin given SceneComponent to the closest AR Pin in real-world. OnPersistentEntityPinned event will be fired when a suitable AR Pin is found for this component. The component's transform will then be locked. App needs to call UnPin() if it wants to move the component again.
true if the component was accepted to be pinned, false otherwise.
Parameter |
Description |
---|---|
ComponentToPin |
SceneComponent to pin to the world. Pass in 'this' component if app is using 'OnlyOnDataRestoration' or 'Always' AutoPinType. |