unity将object[]或者string对象转换成枚举enum
protected override void OnSetData(params object[] datas)
{
string str = datas[0].ToString();
LoopType type = (LoopType )Enum.Parse(typeof(LoopType ), str);
}
unity将object[]或者string对象转换成枚举enum
protected override void OnSetData(params object[] datas)
{
string str = datas[0].ToString();
LoopType type = (LoopType )Enum.Parse(typeof(LoopType ), str);
}