Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.03k stars 1.13k forks source link

Unity 2019.4.1f1 RuntimeReferenceImageLibrary and CreateRuntimeLibrary not found #540

Closed ghost closed 4 years ago

ghost commented 4 years ago

Dear, I'm trying to use RuntimeReferenceImageLibrary and CreateRuntimeLibrary but when I write the code my visual studio code does not recognize it. My os is macOS Catalina 10.15.4 Unity 2019.41f1 ArFoundation 2.1.8 -> 4.0.2 (Published Date April 16, 2020)

There are some other that have the same problem? How can I fix it?

tdmowrer commented 4 years ago

You need to include using directives for UnityEngine.XR.ARFoundation and UnityEngine.XR.ARSubsystems. if you are using asmdefs then you'll need to add referenced to the ARFoundation and ARSubsystem assemblies too.

VSCode often struggles to understand valid code in my experience. Is it just VSCode complaining, or does it fail to compile in Unity? If so, what is the error message?

ArFoundation 2.1.8 -> 4.0.2 (Published Date April 16, 2020)

That's a large range of versions. Which one are you using?