mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
25 lines
677 B
HTML
25 lines
677 B
HTML
<!DOCTYPE html>
|
|
|
|
<html lang="zh-cn">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>01 LoadPackageTest</title>
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<script src="../dist/ShadowEditor.PackageManager.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
var pm = new Shadow.PackageManager();
|
|
pm.setPath('../../ShadowEditor.Web/assets');
|
|
pm.addFromFile('../../ShadowEditor.Web/assets/packages.json').then(() => {
|
|
pm.load('three').then(() => {
|
|
var scene = new THREE.Scene();
|
|
alert(scene);
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |