Pin URP renderer feature release

This commit is contained in:
Meta Vens 2026-07-18 16:40:18 +01:00
commit 6c73788368
3 changed files with 17 additions and 3 deletions

View file

@ -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<PostProcessData>(
AssetDatabase.GUIDToAssetPath(PostProcessDataGuid));
if (!renderer.rendererFeatures.OfType<EveUnityRendererFeature>().Any())
{
var feature = ScriptableObject.CreateInstance<EveUnityRendererFeature>();
feature.name = "Eve Unity World Effects";
AssetDatabase.AddObjectToAsset(feature, renderer);
renderer.rendererFeatures.Add(feature);
}
EditorUtility.SetDirty(renderer);
var pipeline = AssetDatabase.LoadAssetAtPath<UniversalRenderPipelineAsset>(PipelinePath);
if (pipeline == null)
{

View file

@ -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": [

View file

@ -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",