Skip to content

Compiling Version 2.4.0 fails for all build targets except standalone and android #5

@Marbl70

Description

@Marbl70

When importing the latest version 2.4.0 into Unity where the build target is set to WebGL or iOS or anything except standalone and android there are a number of errors in the console, preventing builds.

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

In those functions there is an ifdef missing:

#if !(UNITY_STANDALONE || UNITY_ANDROID)
return false;
#endif

This prevents us from using this version of the sdk as we are building for multiple targets, please fix asap.

Thanks,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions