Hello, everyone. I'm currently having an issue where I'm trying to call a Coroutine, but I get a namespace not found error on the StartCoroutine method. I have been able to call this method elsewhere in the project. My class declaration is as follows:
public class ModelTreeBuilder : MonoBehaviour {
public static IEnumerator CreateModelTree() { //call to StartCoroutine is made in here }
}
And my includes are:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
Please let me know what I've missed.
↧