- Home /
Question by
greencindy · Feb 15, 2013 at 07:47 PM ·
texture2druntimelightmapnewresource.load
Can't Resources.load new generated texture2D as lightmaps at run time
I generated new .exr file in Assets/Resources folder in each loop and try to Resources.Load this .exr file at runtime as lightmap. But it doesn't work. If I already have the .exr files in the Resources folder before playing, it could successfully load the new lightmap and show it in the scene.
Is it a requirement that all the lightmaps must be already exist in the Resources folder before compiling and playing the game?
Thanks very much!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613092750im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Inverse of a texture for masking? 1 Answer
Loadimage Texture at runtime 1 Answer
White Edges on Sprites Loaded from PNG at Run-time 0 Answers
How to set a texture resource to texture type "GUI" by script? 1 Answer
Convert Texture2d to sprite 2 Answers