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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
OlofGameDev
Posts: 5
Joined: Wed Jun 09, 2021 7:24 am

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

Post 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,
 }
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Hi,

Define a Custom Field Type.
Post Reply