native.fileUtils is not available when using preview in editor option for running the game. To use native.fileUtils in preview in editor mode, I’ve turned on the “Use native engine for scene editor” from File → Preferences → Laboratory → Scene → Use native engine for scene editor.
Now the native.fileUtils can be used in preview in editor mode but now its breaking the cocos editor, random game scene is rendering on top of the editor. This is happening on windows platform only but working fine on mac os.
- Use native engine for scene editor is selected and editor is reloaded now random scene view can be seen here on top of the preferences window and in the hierarchy panel.
- Editor when scene is not running
- Editor when scene is running
Cocos team please look into this issue for windows platform. I’m Looking forward for this fix in the future versions of cocos creator.
Thanks