- Home /
How can access a Lightmap file using unityengine.resourse?
I need to switch Lightmaps at runtime and trying to access lightmap file which is placed in asset folder. Please help how can I access lightmap file using js.
Answer by liszto · Jan 05, 2013 at 01:37 AM
First of all, you need to put your lightmaps in the resources folder otherwise your Resouces.Load never work on them.
When you put your lightmaps in it you can do somehting like this :
http://answers.unity3d.com/questions/359301/access-use-lightmap-property-using-script.html
It's a previous answer to the same question than you. I let you translate it in js ;). I don't think it's really complicated ^^
Your answer
![](https://koobas.hobune.stream/wayback/20220613085027im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Lightmapping issue 0 Answers
lightmap What is up?????? 0 Answers
How to load lightmaps from assetbundles dynamically at the runtime? 0 Answers
about precomputed lightmapping stages. 0 Answers