From cdf889bc36513b14eb4dfe1b55bfb409eb9f370e Mon Sep 17 00:00:00 2001 From: Pema Malling Date: Sun, 8 Sep 2024 15:00:21 +0200 Subject: [PATCH] Fix asmdef for new scripts --- Packages/com.llealloo.audiolink/Runtime/AudioLink.asmdef | 3 ++- .../Runtime/Scripts/AudioReactiveBlendshapes.cs | 1 - .../Runtime/Scripts/AudioReactivePostProcessing.cs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Packages/com.llealloo.audiolink/Runtime/AudioLink.asmdef b/Packages/com.llealloo.audiolink/Runtime/AudioLink.asmdef index 87d1c8a8..a4ac3d0c 100644 --- a/Packages/com.llealloo.audiolink/Runtime/AudioLink.asmdef +++ b/Packages/com.llealloo.audiolink/Runtime/AudioLink.asmdef @@ -3,7 +3,8 @@ "references": [ "UdonSharp.Runtime", "UdonSharp.Lib", - "VRC.Udon" + "VRC.Udon", + "Unity.Postprocessing.Runtime" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactiveBlendshapes.cs b/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactiveBlendshapes.cs index ddfce43e..4e5a481f 100644 --- a/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactiveBlendshapes.cs +++ b/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactiveBlendshapes.cs @@ -4,7 +4,6 @@ namespace AudioLink { #if UDONSHARP using UdonSharp; - using UnityEngine.Rendering.PostProcessing; [RequireComponent(typeof(SkinnedMeshRenderer))] public class AudioReactiveBlendshapes : UdonSharpBehaviour diff --git a/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactivePostProcessing.cs b/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactivePostProcessing.cs index 72e85fc0..d6d0e388 100644 --- a/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactivePostProcessing.cs +++ b/Packages/com.llealloo.audiolink/Runtime/Scripts/AudioReactivePostProcessing.cs @@ -2,6 +2,7 @@ namespace AudioLink { +#if UNITY_POST_PROCESSING_STACK_V2 #if UDONSHARP using UdonSharp; using UnityEngine.Rendering.PostProcessing; @@ -38,4 +39,5 @@ void Update() } } +#endif }