UniLua icon indicating copy to clipboard operation
UniLua copied to clipboard

Support for Enum definitions...

Open plasmalasgun opened this issue 11 years ago • 0 comments

In unity_engine.lua:_init(_ENV) You can define unity enums as a class and pass objects around of the enum types ("LighType","TouchPhase" comes into mind) however cannot adress each of the enumerators( In the case of of Touchphase: Began Moved Stationary Ended ...)

touchObj1.phase == touchObj2.phase --works touchObj1.phase == TouchPhase.Began --dont work

plasmalasgun avatar Jul 28 '14 06:07 plasmalasgun