This is sample code of a very early prototype for the 3D View feature of Microsoft Edge Developer Tools. This code helped as a proof of concept.
You can learn more about the real feature with this explainer, or reading the blog.
- Clone this repo
- Get the latest version of Babylon.js from https://cdn.babylonjs.com/babylon.js. Copy that file and paste into
/browser_extension/src/babylon.js
- Open Edge browser
- Navigate to
edge://extensions
- Enable developer mode
- Click on 'Load unpacked'
- Select the folder
browser_extension
This will load the extension in your browser, you should see an icon appear in the right side of the toolbar. Clicking on it won't display any UI since this is a devtools extension.
- Navigate to any website you want to inspect.
- Launch the DevTools by pressing
F12
or by right clicking the page and selecting "Inspect". - DevTools will launch with a new tab called "3D View (Prototype)"
- Select the tab and reload the website.