- Home /
The question is answered, right answer was accepted
Coroutine couldn't be started because the the game object 'RMHub' is inactive! Why?
I keep getting an error that says "Coroutine couldn't be started because the the game object 'RMHub' is inactive!". However RMHub is never deactivated nor are any of its references. The coroutine in question is declared in RMHub and is called on a button. Here is the coroutine public void nextExercise() { if (moreRM > 0) { Debug.Log("yah more RM!!!!"); StartCoroutine(situations.PickExercise()); removeInstructions(); } }
Any help would be greatly appreciated.
The object in question is an Empty so it doesn't actually show up in the camera. However I found out the problem. The problem is that it is referencing the asset not the actual item that is active in the scene. I dont know how to change that though so any ideas would be helpful.
Ok, Is it using a ScriptableObject ? Can you share more code ?
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to play animation (C#) 3 Answers
Animation at the end of the level 1 Answer