public static void CreateSkyProfiles() { UnityPipelineProfile asset = ScriptableObject.CreateInstance <UnityPipelineProfile>(); AssetDatabase.CreateAsset(asset, "Assets/Unity Pipeline Profile.asset"); AssetDatabase.SaveAssets(); EditorUtility.FocusProjectWindow(); Selection.activeObject = asset; }
private void OnEnable() { //Initialization if (m_editorUtils == null) { // Get editor utils for this m_editorUtils = PWApp.GetEditorUtils(this); } //Get Gaia Lighting Profile object m_profile = (UnityPipelineProfile)target; m_version = PWApp.CONF.Version; m_shaderMappingLibraryFoldouts = new bool[m_profile.m_ShaderMappingLibrary.Length]; }