Verse Library verse

01 Cast Pattern

Casts a generic scene event to a specific event type to access custom properties safely.

extracted-snippets/documentation/en-us/fortnite/scene-events-in-unreal-editor-for-fortnite/01-cast-pattern.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/scene-events-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/scene-events-in-unreal-editor-for-fortnite.md
# Section:    Cast Pattern
if (SpecificEvent := my_event[E]):
# Cast succeeded — access SpecificEvent.Amount, etc.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in