Start a new topic

ImageTrackable class not giving a drawables definition

 SDK: 9.12 Expert Edition

Unity Version: 2021.3.13f1


What I'm trying to do: I want to create a set of arrows that the user can click to cycle through different drawables rendering on a trackable. My setup code is as follows:


 

using UnityEngine;

using Wikitude;


public class CycleController : MonoBehaviour

{

[SerializeField] GameObject[] objectsToCycle;

[SerializeField] ImageTrackable targetToCycle;

[SerializeField] GameObject arrowBack;

[SerializeField] GameObject arrowForward;


public int index = 0;


void Awake()

{

Debug.Log(targetToCycle);

}


void OnBack()

{

}


void onForward()

{

}

}


The problem: I've read other places that I should be able to accomplish this using ImageTrackable.drawables.cam. However, when I try to do that, I get a compiler error that ImageTrackable has no definition for drawables. Can anyone help me figure out what I'm doing wrong? Thanks.

Login or Signup to post a comment