Show / Hide Table of Contents

    UUxtFunctionLibrary

    Library of utility functions for UX Tools.

    class UUxtFunctionLibrary;
    

    Header

    #include <Utils/UxtFunctionLibrary.h>

    Inheritance

    Inherits from UBlueprintFunctionLibrary

    Public Functions

    Name
    FTransform GetHeadPose(UObject * WorldContextObject)
    bool IsInEditor()
    USceneComponent * GetSceneComponentFromReference(const FComponentReference & ComponentRef, AActor * Owner)

    Public Attributes

    Name
    bool bUseTestData
    FTransform TestHeadPose

    Public Functions Documentation

    function GetHeadPose

    static FTransform GetHeadPose(
        UObject * WorldContextObject
    )
    

    Returns the world space position and orientation of the head.

    function IsInEditor

    static bool IsInEditor()
    

    Returns true if we are running in editor (not game mode or VR preview).

    function GetSceneComponentFromReference

    static USceneComponent * GetSceneComponentFromReference(
        const FComponentReference & ComponentRef,
        AActor * Owner
    )
    

    Returns the scene component the passed component reference is pointing to if there is any - else will return nullptr.

    Replicates FComponentReference::GetComponent() functionality, except it does not use FProperty to detect components. This allows it to detect components not contained in a blueprint.

    Public Attributes Documentation

    variable bUseTestData

    static bool bUseTestData = false;
    

    When true, the methods in this class will use test data. Intended for tests and internal usage only.

    variable TestHeadPose

    static FTransform TestHeadPose = FTransform::Identity;
    

    When bUseTestData is true, GetHeadPose will return this transform.


    Updated on 19 August 2021 at 17:42:51 Coordinated Universal Time

    • Improve this Doc
    Back to top Generated by DocFX