Skip to content

Commit

Permalink
Add logic to remove old importer in new editor and update shader grap…
Browse files Browse the repository at this point in the history
…h readme (#9)

* Add logic to remove old importer in new editor

* 完善 shader-graph readme

* refine readme
  • Loading branch information
knoxHuang authored Dec 19, 2023
1 parent d32d5c1 commit b08d357
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extensions/shader-graph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ npm run pack - Package into a zip file
```
### Known issues

- Preview panel does not support dynamic preview
- Dynamic preview is not supported in the preview panel.
- Setting for nodes of type Texture2D is ineffective. You need to add a Texture2D type variable, connect it to the texture2D property, and finally set the effect in the Material.

### Development team

Expand Down
3 changes: 2 additions & 1 deletion extensions/shader-graph/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ npm run pack - 打包成 zip 包

### 已知问题

- 预览面板不支持动态预览
- 预览面板不支持动态预览。
- 对 Texture2D 类型的节点进行设置是无效的。您需要添加一个 Texture2D 类型变量,将其连接到 texture2D 属性,最后在材质中设置效果。

### 开发团队

Expand Down
4 changes: 4 additions & 0 deletions extensions/shader-graph/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ exports.register = async function(info: { [key: string]: any}) {
// 3.8.3 使用新版本的添加菜单方式,移除旧的方式
if (gte(version, '3.8.3')) {
delete info.contributions.assets.menu;
// 移除旧的导入器
if (info.contributions['asset-db']) {
delete info.contributions['asset-db'].importer;
}
}
};

0 comments on commit b08d357

Please sign in to comment.