예제 #1
0
        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);
        }
예제 #2
0
        void OnEnable()
        {
            var o = new PropertyFetcher <Volume>(serializedObject);

//custom-begin: malte: context reference for exposed property resolver
            m_Context = o.Find(x => x.context);
//custom-end
            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);
        }
예제 #3
0
 void OnEnable()
 {
     m_ComponentList = new VolumeComponentListEditor(this);
     m_ComponentList.Init(target as VolumeProfile, serializedObject);
 }
 public VolumeComponentProvider(VolumeProfile target, VolumeComponentListEditor targetEditor)
 {
     m_Target       = target;
     m_TargetEditor = targetEditor;
 }