void OnEnable()
        {
            var o = new PropertyFetcher<Volume>(serializedObject);
            m_IsGlobal = o.Find(x => x.isGlobal);
            m_BlendRadius = o.Find(x => x.blendDistance);
            m_Weight = o.Find(x => x.weight);
            m_Priority = o.Find(x => x.priority);
            m_Profile = o.Find(x => x.sharedProfile);

            m_ComponentList = new VolumeComponentListEditor(this);
            RefreshEffectListEditor(actualTarget.sharedProfile);
        }
Beispiel #2
0
 public VolumeComponentProvider(VolumeProfile target, VolumeComponentListEditor targetEditor)
 {
     m_Target       = target;
     m_TargetEditor = targetEditor;
 }
Beispiel #3
0
 void OnEnable()
 {
     m_ComponentList = new VolumeComponentListEditor(this);
     m_ComponentList.Init(target as VolumeProfile, serializedObject);
 }