diff --git a/ReleaseConsumerProject/Assets/Editor/GenericEveUnityRenderPipeline.cs b/ReleaseConsumerProject/Assets/Editor/GenericEveUnityRenderPipeline.cs index b41e95e..89c6d30 100644 --- a/ReleaseConsumerProject/Assets/Editor/GenericEveUnityRenderPipeline.cs +++ b/ReleaseConsumerProject/Assets/Editor/GenericEveUnityRenderPipeline.cs @@ -1,3 +1,5 @@ +using System.Linq; +using GameCult.Eve.UnityScene; using UnityEditor; using UnityEngine; using UnityEngine.Rendering; @@ -5,6 +7,7 @@ using UnityEngine.Rendering.Universal; public static class GenericEveUnityRenderPipeline { + private const string PostProcessDataGuid = "41439944d30ece34e96484bdb6645b55"; private const string RendererPath = "Assets/GenericEveUnityRenderer.asset"; private const string PipelinePath = "Assets/GenericEveUnityRenderPipeline.asset"; @@ -17,6 +20,17 @@ public static class GenericEveUnityRenderPipeline AssetDatabase.CreateAsset(renderer, RendererPath); } + renderer.postProcessData = AssetDatabase.LoadAssetAtPath( + AssetDatabase.GUIDToAssetPath(PostProcessDataGuid)); + if (!renderer.rendererFeatures.OfType().Any()) + { + var feature = ScriptableObject.CreateInstance(); + feature.name = "Eve Unity World Effects"; + AssetDatabase.AddObjectToAsset(feature, renderer); + renderer.rendererFeatures.Add(feature); + } + EditorUtility.SetDirty(renderer); + var pipeline = AssetDatabase.LoadAssetAtPath(PipelinePath); if (pipeline == null) { diff --git a/ReleaseConsumerProject/Packages/manifest.json b/ReleaseConsumerProject/Packages/manifest.json index 89378f5..58a53f1 100644 --- a/ReleaseConsumerProject/Packages/manifest.json +++ b/ReleaseConsumerProject/Packages/manifest.json @@ -9,7 +9,7 @@ "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.16", "org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3", "org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4", - "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.65", + "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.66", "org.gamecult.eve.unity-uitoolkit": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#eveunity-uitoolkit-v0.1.1" }, "testables": [ diff --git a/ReleaseConsumerProject/Packages/packages-lock.json b/ReleaseConsumerProject/Packages/packages-lock.json index 79b85ec..0d4ea0d 100644 --- a/ReleaseConsumerProject/Packages/packages-lock.json +++ b/ReleaseConsumerProject/Packages/packages-lock.json @@ -144,7 +144,7 @@ "hash": "e08fa08335f99e9edddeb706912eecfad07cb281" }, "org.gamecult.eve.unity-scene": { - "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.65", + "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.66", "depth": 0, "source": "git", "dependencies": { @@ -155,7 +155,7 @@ "com.unity.render-pipelines.universal": "17.4.0", "com.unity.modules.particlesystem": "1.0.0" }, - "hash": "e08fa08335f99e9edddeb706912eecfad07cb281" + "hash": "b8259a8e52b3d024801f088a9e49072bddc6de0b" }, "org.gamecult.eve.unity-uitoolkit": { "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#eveunity-uitoolkit-v0.1.1",