在c#中可以通过强转,将枚举和整形之间互相转换。那么在Lua中怎么转换呢?
space = UnityEngine.Space.World --Space是一个枚举 space:ToInt() --转换为数值 UnityEngine.Space.IntToEnum(0) --数值转换为枚举