Show / Hide Table of Contents

    UUxtConstraintPickerWidget

    Editor utility widget for adding constraints to actors.

    class UUxtConstraintPickerWidget;
    

    Header

    #include <UxtConstraintPickerWidget.h>

    Inheritance

    Inherits from UEditorUtilityWidget

    Public Functions

    Name
    void SetTabID(FName ID)
    void SetOwner(TWeakObjectPtr< UObject > Owner)
    bool HasValidOwner() const

    Protected Functions

    Name
    void OnOwnerChanged()
    TArray< TSubclassOf< UUxtTransformConstraint > > GetConstraintClasses() const
    FString GetConstraintName(TSubclassOf< UUxtTransformConstraint > ConstraintClass)
    FString GetConstraintDescription(TSubclassOf< UUxtTransformConstraint > ConstraintClass)
    bool AddConstraint(TSubclassOf< UUxtTransformConstraint > ConstraintClass)

    Protected Attributes

    Name
    FName TabID

    Public Functions Documentation

    function SetTabID

    void SetTabID(
        FName ID
    )
    

    Sets the unique identifier for the tab this EditorUtilityWidget was spawned into.

    function SetOwner

    void SetOwner(
        TWeakObjectPtr< UObject > Owner
    )
    

    Set the wiget's owning component.

    function HasValidOwner

    bool HasValidOwner() const
    

    Returns true if we have a valid handle to the actor being modified.

    Protected Functions Documentation

    function OnOwnerChanged

    void OnOwnerChanged()
    

    Event which triggers when the owner is changed.

    function GetConstraintClasses

    TArray< TSubclassOf< UUxtTransformConstraint > > GetConstraintClasses() const
    

    Get all classes that inherit from UxtTransformConstraint.

    function GetConstraintName

    FString GetConstraintName(
        TSubclassOf< UUxtTransformConstraint > ConstraintClass
    )
    

    Get the name of the constraint as a formatted display string.

    function GetConstraintDescription

    FString GetConstraintDescription(
        TSubclassOf< UUxtTransformConstraint > ConstraintClass
    )
    

    Get the description for the constraint, this is the comment above the constraint class.

    function AddConstraint

    bool AddConstraint(
        TSubclassOf< UUxtTransformConstraint > ConstraintClass
    )
    

    Add the selected constraint to the actor / blueprint.

    Protected Attributes Documentation

    variable TabID

    FName TabID;
    

    Gets unique identifier for the tab this EditorUtilityWidget was spawned into.


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

    • Improve this Doc
    Back to top Generated by DocFX