var eDefault = frameDataViewType.GetNestedType("ViewModes").GetField("Default").GetValue(null);//取类中枚举的值 if(eDefault == null) { Debug.LogError("eDefault == null"); return; } frameDataView = Activator.CreateInstance( frameDataViewType, BindingFlags.Instance|BindingFlags.NonPublic, null, new object[] { frameIdx, 0, eDefault, 5, false }, null); if(frameDataView == null) { Debug.LogError("framedataview == null"); return; }