News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Unity enum equivalent on doom 3 script?

Started by argoon, November 23, 2016, 04:08:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

argoon

Hey guys does idtech 4 script has something like unity enum?

In unity you use - enum NAME { VALUE, VALUE_1, VALUE_2} almost like an array then you access that with - private var name : NAME= NAME.VALUE_2;

This in Unity script looks very similar to the idtech 4 script #define NAME VALUE  directive, i'm i right? If yes how could i implement that using #define?


edit - Was able to do the same using 3 different #defines but would still like to know if something like enum was possible. 

Ivan_the_B


argoon

It really seams so, that is a petty, but in the end like i said just used 3 different #define and it did the same job. :)