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); }
public VolumeComponentProvider(VolumeProfile target, VolumeComponentListEditor targetEditor) { m_Target = target; m_TargetEditor = targetEditor; }
void OnEnable() { m_ComponentList = new VolumeComponentListEditor(this); m_ComponentList.Init(target as VolumeProfile, serializedObject); }