I was watching this video:
And thought it would be simple to follow. When I get to
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement;
public class GameManager1 : MonoBehaviour
{
//public GameObject chapterPrefab;
public AssetReference chapterPrefab;
void Start()
{
chapterPrefab.Instantiate<GameObject>();
}
}```
I get an error: Assets\Scripts\GameManager1.cs(28,23): error CS0308: The non-generic method 'AssetReference.Instantiate(Vector3, Quaternion, Transform)' cannot be used with type arguments
Why is this happening? All I am trying to do is build out some content in a scene with the Vuforia SDK and Image targets, nest each collection of image targets and AR content in a prefab, make it addressable, label the addressable "AR Pages", have the "chapterPrefab" AssetReference load all the addressable prefabs with that label into the scene and play the content on the respective Image Target when it is recognized.
I know this isn't the Vuforia forum, but I had to put my request in context.