# We use these modules to access devices and math types. using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/SpatialMath } using { /Verse.org/Colors } # This is our hero blueprint. # It inherits from creative_device, which is the real # base class for placeable Verse objects in UEFN. color_chaser := class(creative_device): # This is the data box we made earlier. # We give it default values so it is always valid. var Info : MyHeroInfo = MyHeroInfo{ Name := "Hero", HeroColor := NamedColors.Red } # A prop_device is a real UEFN device you can place # and reference in the editor to drive a visual prop. # Wire this in the editor's Details panel. # note: prop_device is the closest real device for # a placeable visual object in UEFN. MeshProp : prop_device = prop_device{} # This function runs automatically when the game starts. OnBegin() : void = # Say hello using the name in the struct. # note: Print() writes to the UEFN output log; # there is no standalone DisplayMessage() in Verse. Print("Hello, {Info.Name}!")