From e32f8974b71f6b25a058858755347c748686ff4c Mon Sep 17 00:00:00 2001 From: MrGcGamer <32813275+MrGcGamer@users.noreply.github.com> Date: Mon, 11 May 2026 13:56:37 +0200 Subject: [PATCH 1/2] Added INCLUDE_UNITY_POLYSPATIAL definition for better compatibility with PolySpatial features --- Runtime/buildingvolumes.geometry_sequence_player.asmdef | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Runtime/buildingvolumes.geometry_sequence_player.asmdef b/Runtime/buildingvolumes.geometry_sequence_player.asmdef index dcdeffc..40b4419 100644 --- a/Runtime/buildingvolumes.geometry_sequence_player.asmdef +++ b/Runtime/buildingvolumes.geometry_sequence_player.asmdef @@ -21,6 +21,11 @@ "name": "com.unity.shadergraph", "expression": "13.0.0", "define": "SHADERGRAPH_AVAILABLE" + }, + { + "name": "com.unity.polyspatial", + "expression": "2.0.0-pre.9", + "define": "INCLUDE_UNITY_POLYSPATIAL" } ], "noEngineReferences": false From abb4224e157591d8fd5a60781a08f2c9da6260b3 Mon Sep 17 00:00:00 2001 From: MrGcGamer <32813275+MrGcGamer@users.noreply.github.com> Date: Wed, 27 May 2026 18:01:07 +0200 Subject: [PATCH 2/2] Refined UNITY_VISIONOS preprocessor directive to include INCLUDE_UNITY_POLYSPATIAL for better compatibility with PolySpatial features again --- Runtime/Scripts/Rendering/PointcloudRendererRT_Meshlet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Scripts/Rendering/PointcloudRendererRT_Meshlet.cs b/Runtime/Scripts/Rendering/PointcloudRendererRT_Meshlet.cs index c60d87b..6f631e0 100644 --- a/Runtime/Scripts/Rendering/PointcloudRendererRT_Meshlet.cs +++ b/Runtime/Scripts/Rendering/PointcloudRendererRT_Meshlet.cs @@ -197,7 +197,7 @@ public void SetFrame(Frame frame) int groupSize = Mathf.CeilToInt(rtPositions.width / 32f); computeShaderRT.Dispatch(0, groupSize, groupSize, 1); -#if UNITY_VISIONOS +#if UNITY_VISIONOS && INCLUDE_UNITY_POLYSPATIAL Unity.PolySpatial.PolySpatialObjectUtils.MarkDirty(rtPositions); Unity.PolySpatial.PolySpatialObjectUtils.MarkDirty(rtColors); #endif