Child objects updating themselves....?

Hello

I am using Unity JS and want to instantiate child objects of a class that each have an equivalent to unity’s update event. Or any method in which an object can periodically call itself.

Coroutine’s and yields don’t appear to work in instantiated objects, neither does InvokeRepeating.

Is there any way to achieve this in javascript?

Hard to say, since you show no code, but most likely your “class that each have an equivalent to unity’s update event” is not derived from MonoBehaviour, and therefore the Update is not called, nor can Coroutines work on it.

Either derive the class from MonoBehaviour, or have the parent call some function in the child during its Update or Coroutine.