VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Verse Language·Up to Community Snippets · Verse Language·64 of 114 in Verse Language

Tag Utilities

Tag Utilities

Convenience wrappers around gameplay tags: find tagged objects, find by any of several tags, and cast results to buttons / lights.

Original, compile-verified Verse by Bizanator (Biloxi Studios). Clean-room sample you can drop into a UEFN project and adapt.

  • # Tag Utilities — Biloxi Studios Inc.
    #
    # Convenience wrappers around Verse gameplay tags for finding placed objects and
    # devices at runtime, plus casting helpers. Gameplay tags let you decouple your
    # logic from hard device references — tag the actors in the editor, then discover
    # them in code.
    #
    # Teaches: FindCreativeObjectsWithTag, looping over multiple tags, the failable
    # device cast `customizable_light_device[Object]`, and collecting cast results
    # with a `for` comprehension.
    
    using { /Fortnite.com/Devices }
    using { /Verse.org/Simulation }
    using { /Verse.org/Simulation/Tags }
    
    tag_utils<public> := module:
    
        # Return every creative object carrying SearchTag. A reusable creative_device
        # is needed to perform the lookup; pass one in to avoid allocating per call.
        # FindCreativeObjectsWithTag yields a generator, so a `for` collects it into
        # an array.
        FindWithTag<public>(Finder:creative_device, SearchTag:tag):[]creative_object_interface =
            for (Object : Finder.FindCreativeObjectsWithTag(SearchTag)):
                Object

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 Verse Language · 64 of 114
Prev
string utils
Next
fortnite wrapping subscribe to pass additional data to listeners

Source

Epic Games documentation

Bizanator

MIT

View original
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