VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Building & Props·Up to Community Snippets · Building & Props·2 of 7 in Building & Props

Toggling Prop Visibility In UEFN

21,047 Views

Report

  • using { /Fortnite.com/Devices }
    using { /Verse.org/Simulation }
    
    # A Verse-authored creative device that can be placed in a level
     hello_world_device := class(creative_device):
    
        @editable
        MyProp :creative_prop = creative_prop{}
    
        @editable
        MyButton: button_device = button_device{}
    
        var MeshVisibility : logic =true
    
    
        # Runs when the device is started in a running game
        OnBegin<override>()<suspends>:void=
            # TODO: Replace this with your code
            Print("Hello, world!")
            
    
            MyButton.InteractedWithEvent.Subscribe(ToggleStatue)
    
    
        ToggleStatue(MyAgent:agent) : void=
            
            if (MeshVisibility?):
                MyProp.Hide()
                set MeshVisibility = false
            else:
                MyProp.Show()
                set MeshVisibility = true
    

    using { /Fortnite.com/Devices } using { /Verse.org/Simulation }

    A Verse-authored creative device that can be placed in a level

    hello_world_device := class(creative_device): @editable MyProp :creative_prop = creative_prop{} @editable MyButton: button_device = button_device{} var MeshVisibility : logic =true

    Runs when the device is started in a running game

    OnBegin<override>()<suspends>:void=

    TODO: Replace this with your code

    Print("Hello, world!") MyButton.InteractedWithEvent.Subscribe(ToggleStatue) ToggleStatue(MyAgent:agent) : void= if (MeshVisibility?): MyProp.Hide() set MeshVisibility = false else: MyProp.Show() set MeshVisibility = true

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Building & Props · 2 of 7
Prev
fortnite rapid practical gameplay development rotate prop in place or move and or rotate prop to preselected locations marked with location marker props looped or single action
Next
fortnite minecraft styled building mechanic

Source

Epic Games documentation

View original

Last updated 2026-07-26T12:46:43.583331+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse