Verse Library verse

01 Language

Shows class inheritance, editable properties, and using subtype bindings for editor polymorphism.

extracted-snippets/documentation/en-us/uefn/30-00-release-notes-in-unreal-editor-for-fortnite/01-language.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/30-00-release-notes-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/30-00-release-notes-in-unreal-editor-for-fortnite.md
# Section:    Language
a_class := class<concrete>:
 @editable MyInt:int = 1

b_class := class(a_class):
 @editable ExtraFloat:float = 1.0

# This will now display in UEFN and can be changed to anything which has a base of a_class such as b_class in this example.
@editable
MyType:subtype(a_class) = a_class
Copy full snippet

Comments

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