diff --git a/com.htc.upm.vive.openxr/Runtime/CompositionLayer/Scripts/CompositionLayerPassthroughAPI.cs b/com.htc.upm.vive.openxr/Runtime/CompositionLayer/Scripts/CompositionLayerPassthroughAPI.cs index 91ba06a..54fdfaa 100644 --- a/com.htc.upm.vive.openxr/Runtime/CompositionLayer/Scripts/CompositionLayerPassthroughAPI.cs +++ b/com.htc.upm.vive.openxr/Runtime/CompositionLayer/Scripts/CompositionLayerPassthroughAPI.cs @@ -416,6 +416,7 @@ public static bool DestroyPassthrough(int passthroughID) #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_DestroyPassthrough(passthroughID); #endif + return false; } /// @@ -474,7 +475,8 @@ public static bool SetPassthroughAlpha(int passthroughID, float alpha, bool auto else return false; #endif - } + return false; + } /// /// For modifying the mesh data of a projected passthrough layer. @@ -545,6 +547,7 @@ public static bool SetProjectedPassthroughMesh(int passthroughID, [In, Out] Vect #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_SetMesh(passthroughID, (uint)vertexBuffer.Length, vertexBufferXrVector, (uint)indexBuffer.Length, indexBufferUint); ; #endif + return false; } /// @@ -623,7 +626,8 @@ public static bool SetProjectedPassthroughMeshTransform(int passthroughID, Proje #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_SetMeshTransform(passthroughID, passthroughFeature.GetXrSpaceFromSpaceType(spaceType), meshXrPose, meshXrScale); #endif - } + return false; + } /// /// For modifying layer type and composition depth of a passthrough layer. @@ -661,7 +665,7 @@ public static bool SetPassthroughLayerType(int passthroughID, LayerType layerTyp #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_SetLayerType(passthroughID, layerType, compositionDepth); #endif - + return false; } /// @@ -702,6 +706,7 @@ public static bool SetProjectedPassthroughSpaceType(int passthroughID, Projected #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_SetMeshTransformSpace(passthroughID, passthroughFeature.GetXrSpaceFromSpaceType(spaceType)); #endif + return false; } /// @@ -764,6 +769,7 @@ public static bool SetProjectedPassthroughMeshPosition(int passthroughID, Vector #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_SetMeshTransformPosition(passthroughID, OpenXRHelper.ToOpenXRVector(trackingSpaceMeshPosition, convertFromUnityToOpenXR)); #endif + return false; } /// @@ -826,6 +832,7 @@ public static bool SetProjectedPassthroughMeshOrientation(int passthroughID, Qua #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_SetMeshTransformOrientation(passthroughID, OpenXRHelper.ToOpenXRQuaternion(trackingSpaceMeshRotation, convertFromUnityToOpenXR)); #endif + return false; } /// @@ -867,6 +874,7 @@ public static bool SetProjectedPassthroughScale(int passthroughID, Vector3 meshS #if UNITY_ANDROID return passthroughFeature.HTCPassthrough_SetMeshTransformScale(passthroughID, OpenXRHelper.ToOpenXRVector(meshScale, false)); #endif + return false; } /// @@ -887,4 +895,4 @@ public static List GetCurrentPassthroughLayerIDs() } #endregion } -} \ No newline at end of file +}