Search Unity

How to load LighningData?

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

  1. GiftedMamba

    GiftedMamba

    Joined:
    Feb 25, 2017
    Posts:
    46
    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