public/0.12.xpublic/0.8.xpublic/0.9.xpublic/0.11.x
  • Features
  • API Documentation
  • API Documentation
  • UUxtUIElementComponent

    Show / Hide Table of Contents
    • AUxtBasePressableButtonActor
    • AUxtHandInteractionActor
    • AUxtInputSimulationActor
    • AUxtPinchSliderActor
    • AUxtPressableButtonActor
    • AUxtPressableCheckButtonActor
    • AUxtPressableRadioButtonActor
    • AUxtPressableSwitchButtonActor
    • AUxtPressableToggleButtonActor
    • AUxtTextRenderActor
    • FScrollingCollectionProperties
    • FUxtAffordanceConfig
    • FUxtAffordanceInstance
    • FUxtButtonAudioBrush
    • FUxtButtonBrush
    • FUxtButtonVisualsBrush
    • FUxtFontCharacter
    • FUxtGrabPointerData
    • FUxtGrabPointerFocus
    • FUxtHandProximityMeshData
    • FUxtIconBrush
    • FUxtIconBrushCustomization
    • FUxtInputAnimationUtils
    • FUxtInputSimulationHandState
    • FUxtInteractionUtils
    • FUXToolsEditorModule
    • FUXToolsModule
    • FUXToolsShadersModule
    • FUXToolsWMRModule
    • FUxtPointerFocus
    • FUxtPointerFocusSearchResult
    • FUxtPokePointerFocus
    • FUxtPressableButtonComponentVisualizer
    • FUxtRuntimeSettingsButtonSet
    • FUxtTextBrush
    • FUxtTooltipSpawnerComponentVisualizer
    • FUxtWmrHandTracker
    • IUxtCollectionObject
    • IUxtFarHandler
    • IUxtFarTarget
    • IUxtGrabHandler
    • IUxtGrabTarget
    • IUxtHandTracker
    • IUxtPokeHandler
    • IUxtPokeTarget
    • UUxtBaseObjectCollection
    • UUxtBoundsControlComponent
    • UUxtBoundsControlConfig
    • UUxtCollectionObject
    • UUxtFaceUserConstraint
    • UUxtFarBeamComponent
    • UUxtFarCursorComponent
    • UUxtFarHandler
    • UUxtFarPointerComponent
    • UUxtFarTarget
    • UUxtFingerCursorComponent
    • UUxtFixedDistanceConstraint
    • UUxtFixedRotationToUserConstraint
    • UUxtFixedRotationToWorldConstraint
    • UUxtFollowComponent
    • UUxtFunctionLibrary
    • UUxtGrabHandler
    • UUxtGrabPointerDataFunctionLibrary
    • UUxtGrabTarget
    • UUxtGrabTargetComponent
    • UUxtHandConstraintComponent
    • UUxtHandTrackingFunctionLibrary
    • UUxtIconBrushEditorUtilityWidget
    • UUxtInputSimulationHeadMovementComponent
    • UUxtInputSimulationLocalPlayerSubsystem
    • UUxtInputSimulationState
    • UUxtInputSubsystem
    • UUxtInternalFunctionLibrary
    • UUxtMaintainApparentSizeConstraint
    • UUxtManipulatorComponentBase
    • UUxtMathUtilsFunctionLibrary
    • UUxtMoveAxisConstraint
    • UUxtNearPointerComponent
    • UUxtPalmUpConstraintComponent
    • UUxtPinchSliderComponent
    • UUxtPointerComponent
    • UUxtPokeHandler
    • UUxtPokeTarget
    • UUxtPressableButtonComponent
    • UUxtRotationAxisConstraint
    • UUxtRuntimeSettings
    • UUxtTapToPlaceComponent
    • UUxtTextRenderComponent
    • UUxtToggleGroupComponent
    • UUxtTouchableVolumeComponent
    • UUxtTouchBasedHandTrackerComponent
    • UUxtTouchBasedHandTrackerSubsystem
    • UUxtTransformConstraint
    • UUxtUIElementComponent
    • UUxtWidgetComponent
    • UxtConstraintManager
    • UxtManipulationMoveLogic
    • UXTools
    • UXToolsEditor
    • UXToolsInputSimulation
    • UXToolsRuntimeSettings
    • UXToolsShaders
    • UXToolsWMR
    • UxtTwoHandManipulationRotateLogic
    • UxtTwoHandManipulationScaleLogic

    Class UUxtUIElementComponent

    Controls visibility of a UI element in the scene.

    Parent-child relationships are managed via actor attachments. If the parent is hidden, all of its children will be hidden. It is recommended to have the UxtUIElementComponent as the root component as the actor as this allows it to automatically update if the actor is attached to a new parent actor. If it is not the root component, RefreshUIElement() will need to be called manually after attaching a new parent actor.

    Note: Manually changing actor visibility will not affect child UI elements and may lead to unwanted behavior.

    Inheritance
    System::Object
    USceneComponent
    UUxtUIElementComponent
    Namespace:
    Assembly: .dll
    Syntax
    public: class UUxtUIElementComponent

    Constructors

    | Improve this Doc View Source

    UUxtUIElementComponent()

    Declaration
    public: UUxtUIElementComponent()=default

    Fields

    | Improve this Doc View Source

    OnHideElement

    Event raised when the element is hidden.

    Declaration
    public: FUxtUIElementHideDelegate OnHideElement
    Field Value
    Type Description
    FUxtUIElementHideDelegate
    | Improve this Doc View Source

    OnShowElement

    Event raised when the element is shown.

    Declaration
    public: FUxtUIElementShowDelegate OnShowElement
    Field Value
    Type Description
    FUxtUIElementShowDelegate

    Methods

    | Improve this Doc View Source

    BeginPlay()

    Declaration
    protected: virtual void BeginPlay() override
    | Improve this Doc View Source

    GetUIVisibilityInHierarchy()

    Get the element's visibility in the scene.

    Declaration
    public: EUxtUIElementVisibility GetUIVisibilityInHierarchy() const
    Returns
    Type Description
    EUxtUIElementVisibility
    | Improve this Doc View Source

    GetUIVisibilitySelf()

    Get the element's visibility. This does not reflect if the element is visible in the scene.

    Declaration
    public: EUxtUIElementVisibility GetUIVisibilitySelf() const
    Returns
    Type Description
    EUxtUIElementVisibility
    | Improve this Doc View Source

    OnAttachmentChanged()

    Declaration
    protected: virtual void OnAttachmentChanged() override
    | Improve this Doc View Source

    RefreshUIElement()

    Refresh the element's visibility. This is only necessary after changing the element's parent actor when this is not the root component of the actor.

    Declaration
    public: void RefreshUIElement()
    | Improve this Doc View Source

    SetUIVisibility(EUxtUIElementVisibility NewVisibility)

    Set the element's visibility. The element will not be visible in the scene if it's parent is hidden.

    Declaration
    public: void SetUIVisibility(EUxtUIElementVisibility NewVisibility)
    Parameters
    Type Name Description
    EUxtUIElementVisibility NewVisibility
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UUxtUIElementComponent()
    • Fields
      • OnHideElement
      • OnShowElement
    • Methods
      • BeginPlay()
      • GetUIVisibilityInHierarchy()
      • GetUIVisibilitySelf()
      • OnAttachmentChanged()
      • RefreshUIElement()
      • SetUIVisibility(EUxtUIElementVisibility NewVisibility)
    Back to top Generated by DocFX