Thursday, December 8, 2022
HomeGame DevelopmentDirector scheduler Api name change argument change from 2.x to three.x -...

Director scheduler Api name change argument change from 2.x to three.x – Cocos Creator


I’ve moved from 2.x to three.x
I’m utilizing director.getScheduler().pauseTarget(this.targetNode) — the place this.targetNode — was node in 2.x
However in 3.x it says it must be ISchedulable. then anybody assist me out methods to use it


director.getScheduler().pauseTarget(nodeComponent)
do that

right here this.targetNode is already a node what u imply by nodeComponent,
and declaration file say it param move must be of ISchedule sort

Thanks
director.getScheduler().pauseTarget(this.targetNode);
Additionally it is working once I outline sort of targetNode it was utilizing HTML node as a substitute of Cocos Node
corrected the import now it’s working tremendous/
Thanks for help

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments