- changed status to resolved
StartCoroutine / StopCoroutine calls not recognized
Issue #152
resolved
when deriving from "SerializedBehaviour" my coroutine calls are not recognized anymore (cannot resolve symbol)
Comments (3)
-
-
reporter oooh sorry, my bad :)
-
That's perfectly alright, it's an understandable mistake :)
- Log in to comment
Hello!
You need to derive from SerializedMonoBehaviour, not SerializedBehaviour. There's a serialized version of each Unity class you normally derive from, and SerializedBehaviour is the serialized version of UnityEngine.Behaviour, not UnityEngine.MonoBehaviour. And UnityEngine.Behaviour, of course, does not support coroutines.