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

Conversation

Wully616
Copy link

Fixes #5

Fixes the following compliation errors when unity is set to a platform which is not Standalone or Android.

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(390,22): error CS0161: 'CompositionLayerPassthroughAPI.DestroyPassthrough(int)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(442,22): error CS0161: 'CompositionLayerPassthroughAPI.SetPassthroughAlpha(int, float, bool)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(498,22): error CS0161: 'CompositionLayerPassthroughAPI.SetProjectedPassthroughMesh(int, Vector3[], int[], bool)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(578,22): error CS0161: 'CompositionLayerPassthroughAPI.SetProjectedPassthroughMeshTransform(int, ProjectedPassthroughSpaceType, Vector3, Quaternion, Vector3, bool, bool)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(644,22): error CS0161: 'CompositionLayerPassthroughAPI.SetPassthroughLayerType(int, LayerType, uint)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(679,22): error CS0161: 'CompositionLayerPassthroughAPI.SetProjectedPassthroughSpaceType(int, ProjectedPassthroughSpaceType)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(726,22): error CS0161: 'CompositionLayerPassthroughAPI.SetProjectedPassthroughMeshPosition(int, Vector3, bool, bool)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(788,22): error CS0161: 'CompositionLayerPassthroughAPI.SetProjectedPassthroughMeshOrientation(int, Quaternion, bool, bool)': not all code paths return a value

Library\PackageCache\com.htc.upm.vive.openxr@df2fc918e700\Runtime\CompositionLayer\Scripts\CompositionLayerPassthroughAPI.cs(843,22): error CS0161: 'CompositionLayerPassthroughAPI.SetProjectedPassthroughScale(int, Vector3)': not all code paths return a value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiling Version 2.4.0 fails for all build targets except standalone and android
1 participant