diff --git a/extensions/shader-graph/README.md b/extensions/shader-graph/README.md index 73be008..3ce0586 100755 --- a/extensions/shader-graph/README.md +++ b/extensions/shader-graph/README.md @@ -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 diff --git a/extensions/shader-graph/README.zh-CN.md b/extensions/shader-graph/README.zh-CN.md index 77dd04b..08dd003 100755 --- a/extensions/shader-graph/README.zh-CN.md +++ b/extensions/shader-graph/README.zh-CN.md @@ -136,7 +136,8 @@ npm run pack - 打包成 zip 包 ### 已知问题 -- 预览面板不支持动态预览 +- 预览面板不支持动态预览。 +- 对 Texture2D 类型的节点进行设置是无效的。您需要添加一个 Texture2D 类型变量,将其连接到 texture2D 属性,最后在材质中设置效果。 ### 开发团队 diff --git a/extensions/shader-graph/src/hooks.ts b/extensions/shader-graph/src/hooks.ts index 44a3c61..256ab9f 100644 --- a/extensions/shader-graph/src/hooks.ts +++ b/extensions/shader-graph/src/hooks.ts @@ -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; + } } };