I am trying to access the Metadata from PIXYZ import using the simple code below. and i keep getting errors.
using UnityEngine;
public class DirectComponentRetrieval : MonoBehaviour
{
void Start()
{
// Directly retrieve the Metadata component.
Metadata metadata = GetComponent<Metadata>();
}
}
The errors i am getting is:
Assets\DirectComponentRetrieval.cs(10,42): error CS0246: The type or namespace name ‘Metadata’ could not be found (are you missing a using directive or an assembly reference?)
The name of the metadata script as seen on the inspector screen is Metadata.