

After I shut down Unity or save the scene, this memory is cleared and thus my reference is lost. If I uncomment this and the scene gets saved via code, the texture reference gets lost the same way as if I was to manually save the scene.ĭo I have to save the material again after applying the texture? Do I also need to save the texture asset again? Help is much appreciated.ĮDIT: I suppose what is happening is that the Texture2D I apply to the material is created in temporary memory. Also, notice in code I commented out / EditorSceneManager.SaveOpenScenes(). If I am in an unsaved (dirty) scene, extract the materials and move to a new scene without saving the current one, the reference is Not lost.īy losing the reference, the material loses its texture and uses the default albedo color. However, when I do 2 of the following things, the texture reference gets lost:ġ) Without closing the editor, I save a scene. Here is a link to an image of the Project and Scene view of the model, which has its materials extracted and textures applied. xml files from Modo, place them into the Assets folder of your Unity project.

In the export window, enable Apply Transform by clicking on the checkbox. If I check the inspector for the material then the textures have been applied. Importing an FBX File to Unity Go to File > Export > FBX (.fbx). The references are also added to the materials. Textures are found and loaded into memory.
