UMagicLeapPlanesFunctionLibrary::GetContentScale

Gets the expected scale of the actor to be placed within the bounds of the given plane.

Windows
MacOS
Linux

References

Module

MagicLeapPlanes

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

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Planes Function Library | MagicLeap")
static FTransform GetContentScale
(
    const AActor * ContentActor,
    const FMagicLeapPlaneResult & PlaneResult
)

Remarks

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.

Returns

A vector representing the expected scale of the Actor.

Parameters

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.

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