Need to call Layer resume all time

Hi all, why all node and layer need resume when i add them to main layer.

My code steps:

  1. create scene class - push that scene to replaceScene
  2. create layer class
  3. addchild layer class to scene
  4. create a lot of node classes like sprites and add them to layer
  5. they didn’t catch touch events untill i write node->resume() to ALL created nodes
  6. same problem with animation - i create armature animation into onEnterTransitionDidFinish and animation showed but not frames changed at all. If i add that code to Scene class - all works.

Why it is all? Help me)

i love this forum - so lovely guys there are!

Sorry, can you help me follow?

So you are saying that a layer doesn’t catch touch events until you call resume() on it?

Can you show me your header and source so I can try to reproduce?

What version of cocos2d-x?