I am importing a model and when I click on the model in the Inspector tab materials give me nothing ( while on other models I get the textures of the materials it consists ) and at the same time I get this error :
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption options) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:203)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:8791)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.GUILayoutOption options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:8780)
UnityEditor.ModelImporterMaterialEditor.DoMaterialsGUI () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/ModelImporterMaterialEditor.cs:364)
UnityEditor.ModelImporterMaterialEditor.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/ModelImporterMaterialEditor.cs:162)
UnityEditor.AssetImporterTabbedEditor.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/TabbedEditor.cs:147)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1367)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
So I can’t assign any textures for this model.