how to do 'Undo' in Cocos Creator?

how to do 'Undo' in Cocos Creator?


during development of scene we can undo with Ctrl+z or Command+z in cocos creator BUT how to do the same thing while the game plays in a specific platform like consider browser in this case.

let’s say if I add child in parent node then if I’m in cocos creator scene editor I can undo it easily by pressing keys combo and in exported version (in browser) I need to specifically remove the child like . removeFromParent method.

Is there any way that I can undo last action in exported version of cocos creator with a cc.undo() method?