Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Verse
Summary
If a concrete class inherits from an abstract base class, and uses the <override>
specifier for an editable, that editable does not show up in UEFN, and can thus not be assigned.
Steps to Reproduce
Build this code, and have a look in UEFN - the TriggerDevice editable does not show up:
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
parent_class := class<abstract>:
TriggerDevice : trigger_device
OnPress(Agent : agent):void=
TriggerDevice.Trigger(Agent)
child_class := class<concrete>(parent_class):
@editable # This can be assigned
ItemGranter : item_granter_device = item_granter_device{}
@editable # This cannot be assigned
TriggerDevice<override> : trigger_device = trigger_device{}
concrete_inherit_issue_demo := class(creative_device):
@editable
ChildClass : child_class = child_class{}
@editable
Button : button_device = button_device{}
OnBegin<override>()<suspends>:void=
Button.InteractedWithEvent.Subscribe(ChildClass.OnPress)
Expected Result
Ideally, the TriggerDevice editable in this example should be assignable in UEFN, or, if this is the intended behavior, the user should be made aware that devices in abstract classes cannot be overridden.
Observed Result
When assigning editables in UEFN to the creative device in this example, only the ItemGranter device can be assigned, the (overridden) TriggerDevice simply does not show up.
Platform(s)
Windows 11, UEFN 29.20
1 post - 1 participant