Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

Incorrect Intensity value of Light component loaded from Assetbundles

$
0
0
Hi, After upgrading my project to use Unity 5, I found several light objects under a particles system have incorrect intensity values. The object structures are: 1. Particle System prefab with a child Light object whose intensity value is N. 2. A Character Prefab having a component holding a reference to the particle system prefab(1.) 3. Set the character prefab to be packed into an assetbundle In runtime, we 1. load the assetbundle 2. load the character prefab from the assetbundle 3. instanitate the character prefab 4. the character prefab instantiates the particle systems linked, in the component's Awake() 5. check the intensity value of the light under the particle system instance We found the intensity value is different from what it is set in its original prefab. This did not happen in Unity 4, and all other values seems correct. Has anyone could give me some suggestions? Thanks.

Viewing all articles
Browse latest Browse all 312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>