Module |
|
Header |
/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeapPlanes/Source/Public/MagicLeapPlanesFunctionLibrary.h |
Include |
#include "MagicLeapPlanesFunctionLibrary.h" |
Source |
/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeapPlanes/Source/Private/MagicLeapPlanesFunctionLibrary.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Planes Function Library | MagicLeap")
static FTransform GetContentScale
(
const AActor * ContentActor,
const FMagicLeapPlaneResult & PlaneResult
)
Gets the expected scale of the actor to be placed within the bounds of the given plane. Ensure that the actor rotation is 0 (FQuat::Identity) before sending it to this function.
A vector representing the expected scale of the Actor.
Parameter |
Description |
---|---|
ContentActor |
Actor for which the scale is to be calculated. |
PlaneDimensions |
Dimensions (in Unreal units) of the plane the actor has to be placed on. |