Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.98k stars 1.11k forks source link

Assets\arfoundation-samples-main\Assets\Scripts\Runtime\UI\Requirements\RequiresCamera.cs(63,51): error CS1061: 'XRCameraSubsystemDescriptor' does not contain a definition for 'supportsExifData' and no accessible extension method 'supportsExifData' accepting a first argument of type 'XRCameraSubsystemDescriptor' could be found (are you missing a using directive or an assembly reference?)[Bug] #1094

Closed mirror-own closed 9 months ago

mirror-own commented 11 months ago

Assets\arfoundation-samples-main\Assets\Scripts\Runtime\UI\Requirements\RequiresCamera.cs(63,51): error CS1061: 'XRCameraSubsystemDescriptor' does not contain a definition for 'supportsExifData' and no accessible extension method 'supportsExifData' accepting a first argument of type 'XRCameraSubsystemDescriptor' could be found (are you missing a using directive or an assembly reference?)

tdmowrer commented 11 months ago

The path suggests that you cloned this repo into an existing project. This repo is a standalone Unity project meant to demonstrate the AR Foundation packages.

If you want to check out these samples, clone this repo, and open it as a separate Unity project. If you want to import AR Foundation into an existing project, do so via the package manager.

andyb-unity commented 11 months ago

@mirror-own It sounds like you are using the main branch of this repository with an older version of AR Foundation. supportsExifData was added in AR Foundation 5.1. If you are looking for samples that are compatible with AR Foundation 5.0 or 4.2, use the corresponding branch of this repo.

andyb-unity commented 9 months ago

Closing this issue as asked and answered. Feel free to re-open it if you have further questions.