Skip to content

Fix compile errors when not using UNITY_STANDALONE or ANDROID platforms #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ public static bool DestroyPassthrough(int passthroughID)
#if UNITY_ANDROID
return passthroughFeature.HTCPassthrough_DestroyPassthrough(passthroughID);
#endif
return false;
}

/// <summary>
Expand Down Expand Up @@ -474,7 +475,8 @@ public static bool SetPassthroughAlpha(int passthroughID, float alpha, bool auto
else
return false;
#endif
}
return false;
}

/// <summary>
/// For modifying the mesh data of a projected passthrough layer.
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down Expand Up @@ -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;
}

/// <summary>
/// For modifying layer type and composition depth of a passthrough layer.
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand Down Expand Up @@ -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;
}

/// <summary>
Expand All @@ -887,4 +895,4 @@ public static List<int> GetCurrentPassthroughLayerIDs()
}
#endregion
}
}
}