I am fixing an issue in a unity code that I have inherited. I have found the code file but need to fix the Canvas that is attached to that script.
Is there a way to determine, and load, the Canvas for the code file that I have found.
This is part of a vuforia enabled app. Here is the start of the file for the Canvas that I"m looking for
using UnityEngine; using System.Collections; using Vuforia;
public class InitErrorHandler : MonoBehaviour {
#region PUBLIC_MEMBER_VARIABLES
public UnityEngine.UI.Text errorText;
#endregion //PUBLIC_MEMBER_VARABLES
#region PRIVATE_MEMBER_VARIABLES
private Canvas errorCanvas;
private string key;
#endregion //PRIVATE_MEMBER_VARIABLES
#region MONOBEHAVIOUR_METHODS
void Awake ()
{
// Get the UI Canvas that contains (parent of) the error text box
if (errorText)
{
errorCanvas = errorText.GetComponentsInParent<Canvas>(true)[0];
}
VuforiaRuntime.Instance.RegisterVuforiaInitErrorCallback(OnInitError);
}
#endregion //MONOBEHAVIOUR_METHODS
...
}