Quantcast
Viewing latest article 14
Browse Latest Browse All 52

Answer by M-G-Production

**Salut Isador34!** Je suis passé par le même problème... So to display an EnumPopup on your custom inspector, put this line of code in your OnInspectorGUI() function: //Look for the Enum ("ItemDatabaseManager") and the var you want to change/display ("currentWeaponTypeToCreate") ItemDatabaseManager.currentWeaponTypeToCreate = (ItemDatabaseManager)EditorGUILayout.EnumPopup("The Weapon: ", ItemDatabaseManager.currentWeaponTypeToCreate); And finally, add "static" before currentWeaponTypeToCreate in your ItemDatabaseManager class: public static TypeOfWeapon currentWeaponTypeToCreate = TypeOfWeapon.baton; Hope this helps! Math

Viewing latest article 14
Browse Latest Browse All 52

Trending Articles