Azure / azure-object-anchors

Azure Object Anchors releases and samples
https://docs.microsoft.com/azure/object-anchors
MIT License
37 stars 17 forks source link

Unity compilation errors when project player platform is not UWP #32

Closed dfields-msft closed 2 years ago

dfields-msft commented 2 years ago

When a Unity project includes the AOA SDK, but is not configured to target the UWP/WSA platform, several scripts from the AOA package will fail to compile, causing errors in the console, and preventing the project from being built:

MultiAnchorObjectPlacement.cs(227,39): error CS0246: The type or namespace name 'IObjectAnchorsTrackingResult' could not be found (are you missing a using directive or an assembly reference?)

image

The workaround is to change the project to target WSA instead of Standalone, which will avoid the compilation failures in the screenshot above.

craigktreasure commented 2 years ago

This was fixed in the 0.22.0 release today.