I am new to Cocos Creator.
I am trying to create a transition from one scene to another
using addPersistRootNode() function. But the console comes up with the message
"The node can not be made persist because it's not under root node."
What exactly is the root node and How do i make my node a child of the root node?
Below is the code I use :
onLoad : function: