![]() ![]() 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. assets files which seems to be in the same format as the generic. ![]() All your assets (models, textures, sounds, prefabs) are packed into. The files that gets unpacked are almost the same as in a standalone build. Also, notice in code I commented out / EditorSceneManager.SaveOpenScenes(). Well, the Unit圓D Obfuscator can unpack a webbuild file (.unit圓d). 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. If I check the inspector for the material then the textures have been applied. The references are also added to the materials. Textures are found and loaded into memory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |