Assets\OcclusionsTutorial.cs(41,21): error CS0103: The name ‘PlatformAgnosticInput’ does not exist in the current context
referencing this Codesnippet:
void Update()
{
//if there is a touch call our function
if (PlatformAgnosticInput.touchCount <= 0) { return; }
var touch = PlatformAgnosticInput.GetTouch(0);
if (touch.phase == TouchPhase.Began)
{
TouchBegan(touch);
}
}
I had the same error when I tried to write the script on my own, but the problem remained after copypasting the example script. I really havo no clue why that might happen.
To resolve the The name ‘PlatformAgnosticInput’ does not exist in the current context. error, you can include the following using statement at the top of your script:
Thanks, the include solved the compiling issue in Unity. Sadly it still didnt work out, but I think thats because the occlusion script interferes with an old hit-tester script i use to place my objects.
Old Hit-Tester and Depth Manager work fine, so everything checks out!
I’m having a similar issue. When I add using Niantic.ARDK.Utilities.Input.Legacy , I get the error he type or namespace name ‘Legacy’ does not exist in the namespace ‘Niantic.ARDK.Utilities.Input’.