Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

How to load LighningData?

Discussion in 'Global Illumination' started by Last_Imba, Aug 8, 2017.

  1. Last_Imba

    Last_Imba

    Joined:
    Feb 25, 2017
    Posts:
    30
    Hi all.
    I have two LightningData.asset files. (Let it be LD_current and LD_new)

    I want to load LD_new dynamicly in my game and i have a reference for LD_new in the inspector.

    But when i am trying next code, I have no effect.

    UnityEditor.Lightmapping.lightningDataAsset = LD_new;

    Is there any way to load dynamicly another LightningData.asset?

    I am using unity 5.5
     
    Last edited: Aug 8, 2017
  2. kemalakay

    kemalakay

    Unity Technologies

    Joined:
    Jul 12, 2016
    Posts:
    224
unityunity