When copying Verse code from Epic Developer Assistant using the “Copy” button, certain characters (e.g., <
and >
) are replaced with HTML entities (<
and >
) in the pasted result. This breaks the code syntax in UEFN. Manually selecting the code block and copying avoids the issue.
Example
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Fortnite.com/Devices }
Simple Verse device showing basic functionality
simple_example_device := class(creative_device):
# Editable variable that can be set in UEFN editor
@editable
BasicInt : int = 0
# Runs when the device begins in the game
OnBegin<override>()<suspends>:void =
# Print the value of BasicInt to the output log
Print("BasicInt value is: {BasicInt}")