Page MenuHomeFeedback Tracker

Enum attribute should be auto detected for workbench use
Assigned, NormalPublic

Description

In the workbench, I am a bit confused why I have to specify uiwidget: UIWidgets.ComboBox and enums: ParamEnumArray.FromEnum(TYPE) even though the variable is declared as an enum and not just an integer as shown below. Yes, I know that they are basically just an integer, but the compiler should be able to tell them apart and so should the workbench. If using an enum both of the above settings should be defaulted to. Same way the UI type automatically gets array<T> correctly.

enum TAG_MyEnum 
{
YES,
NO,
RANDOM_STELLAR_BITFLIP
}

class TAG_MyClass
{
	[Attribute(desc: "Hello World")]
	TAG_MyEnum m_eVariable;
}

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Mar 30 2023, 7:52 PM
Arkensor updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Apr 4 2023, 11:49 AM