Page 1 of 1

Add a custom enum to the Type drop-down menu for an Item

Posted: Sun Feb 19, 2023 1:15 pm
by OlofGameDev
Image

How do I add a custom enum to the Type drop-down menu for an Item?

It would look something like this

Code: Select all

[System.Flags]
 public enum ShipComponentType
 {
     Weapon = 0x1,

     Cabin = 0x2,

     Engine = 0x4,

     Wings = 0x8,
 }

Re: Add a custom enum to the Type drop-down menu for an Item

Posted: Sun Feb 19, 2023 2:14 pm
by Tony Li
Hi,

Define a Custom Field Type.