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 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