tronicsvef.blogg.se

Gitbook editor local
Gitbook editor local












gitbook editor local

to a heading using a custom name within the same gitbook to a heading using heading name within the same gitbook Browsers tested on mobile devices include: Safari (iOS), Chrome, QQ browser, UC browser, and WeChat built-in Webview.Ĭontinue to the Introduction To Preview Process And Common Error Handling documentation.Internal Links are hypertext links from one article. Please do not enable IE6 compatibility mode. The desktop browsers tested during Cocos Creator 3D development include: Chrome, Firefox (Firefox), other browsers can be used as long as the kernel version is high enough.

gitbook editor local

To learn more about using DevTools, please read the Chrome Dev Tools User Guide documentation, or other browser's developer documentation. It is possible to debug source code, add breakpoints, check the call stack and use step control during debugging. Take Chrome for example, open menu and choose Developer/Developer Tools to open the Developer Tools. Custom device info can be modified on this page, and changes will work after refreshing the preview page. Now, you can refresh your preview game to see changes.

gitbook editor local

Place test.js in the preview-template folder like blow.test.js in the example below will be loaded after the game starts. Examples of UseĬode of this example is stored in the test-case-3d repository.Ĭlick the menu Project-> Generate Preview Template to generate a preview template, and the address generated by the preview template will be printed in the console.Īdd the scripts you need to use in folder, such as test.js, where contains the default logic for starting the game. In addition, if index.html and index.ejs coexist, index.html will replace index.ejs as the render-template for preview page.

#Gitbook editor local code#

Note: There are some preview menu items and preview debugging tools in the preview template, We recommended you keep all the content and just add what you need or modified code carefully to avoid some unexpected errors. If there is a file named index.ejs in this dictionary,editor will use it as the template that render to can click the menu in editor Project -> Generate Preview Template to get the latest template used in editor. We can add custom preview template to change the preview result,just put your template in preview-template folder in the project dictionary.Editor also use template to render to index.html. Please refer to the description of the preference settings documentation. Note: Make sure the mobile phone and the computer is on the same network segment.Since there will be multiple networks on the computer, if the IP address of the preview URL in the editor is incorrectly, you can modify it in Preferences-> General Settings-> Select Local Preview Address. Move the mouse to the ip preview address on the left side of the editor toolbar, and a preview QR code will be displayed, which can be scanned with your mobile phone.ĭirectly Enter the preview address in the mobile browser

gitbook editor local

Use the mobile browser preview mode of Browser Developer Tools There are the following ways to debug the preview page on the mobile phone: For more information, please refer to the Project Settings documentation. The editor will use the current scene as start-scene of preview, we can modified it in Project Settings-> Project Preview. The difference is that click refresh button in editor will refresh all preview pages.If you want the preview page to refresh automatically, just save the scene.The settings for saving scene auto-refresh can be enable in Project Settings-> Project Preview. If we want to refresh the preview page after some modified, just refresh in browser or click the refresh button in editor.

  • Show FPS toggle framerate and draw call stats display.
  • Debug Mode let you control the severe level of logs to be shown.
  • Rotate button to toggle between landscape and portrait view.
  • On the left are viewport size presets to simulate how your game look on mobile devices.
  • There are a number of control in Preview page: We recommend Chrome as the browser of choice, since the developer tools in Chrome are most advanced in web debugging and inspecting. After clicking, editor will launch the game in your default browser. Introduction To Preview Process And Common Error HandlingĬreate Animation components and animation clipsĬlick the Preview button on top of editor window to see the game in action.














    Gitbook editor local