Toggling Prop Visibility In UEFN
21,047 Views
-
using { /Fortnite.com/Devices } using { /Verse.org/Simulation } # A Verse-authored creative device that can be placed in a level hello_world_device := class(creative_device): @editable MyProp :creative_prop = creative_prop{} @editable MyButton: button_device = button_device{} var MeshVisibility : logic =true # Runs when the device is started in a running game OnBegin<override>()<suspends>:void= # TODO: Replace this with your code Print("Hello, world!") MyButton.InteractedWithEvent.Subscribe(ToggleStatue) ToggleStatue(MyAgent:agent) : void= if (MeshVisibility?): MyProp.Hide() set MeshVisibility = false else: MyProp.Show() set MeshVisibility = trueusing { /Fortnite.com/Devices } using { /Verse.org/Simulation }
A Verse-authored creative device that can be placed in a level
hello_world_device := class(creative_device): @editable MyProp :creative_prop = creative_prop{} @editable MyButton: button_device = button_device{} var MeshVisibility : logic =true
Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
TODO: Replace this with your code
Print("Hello, world!") MyButton.InteractedWithEvent.Subscribe(ToggleStatue) ToggleStatue(MyAgent:agent) : void= if (MeshVisibility?): MyProp.Hide() set MeshVisibility = false else: MyProp.Show() set MeshVisibility = true
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 your BrainDead.TV / BrainDeadGuild Discord account for full access.