Unity导出器插件提供NullReferenceException:对象引用未设置为对象的实例

时间:2016-03-31 04:43:33

标签: c# plugins unity3d

我正在尝试构建一个导出器插件,将3d模型导出到包含所有必需文件的给定路径。

导出程序运行良好,但发生控制台错误

我想摆脱控制台错误,我已经尝试了很多天来找到错误并修复它。

我似乎无法找到作为代码打开的错误位置。

请善意引导我走向正确的方向。

我是团结的新手。

错误讯息:

    NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUIUtility.TempContent (System.String[] texts) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorGUIUtilityBindings.gen.cs:312)
UnityEditor.EditorGUI.Popup (Rect position, System.String label, Int32 selectedIndex, System.String[] displayedOptions, UnityEngine.GUIStyle style) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorGUIBindings.gen.cs:517)
UnityEditor.EditorGUILayout.Popup (System.String label, Int32 selectedIndex, System.String[] displayedOptions, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:5992)
UnityEditor.EditorGUILayout.Popup (System.String label, Int32 selectedIndex, System.String[] displayedOptions, UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:5985)
Expoter.OnGUI () (at Assets/LiveRoom/Scripts/Editor/Exporter.cs:45)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

我找不到

/Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorGUIUtilityBindings.gen.cs:312

0 个答案:

没有答案