Skip to content

error attempting to use UV channel 1 #12

Description

@trobins78

[Window] Cannot read property 'localSetLayout' of undefined
TypeError: Cannot read property 'localSetLayout' of undefined
at process:scene
at SubModel.set passes [as passes] (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:217296:40)
at Model.setSubModelMaterial (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:214510:39)
at MeshRenderer._onRebuildPSO (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:194459:23)
at MeshRenderer._onMaterialModified (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:194447:16)
at MeshRenderer.setMaterialInstance (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:24946:20)
at MeshRenderer.set material [as material] (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:24834:16)
at ShaderGraphPreview.setMaterial (D:\Work_Related\GITHUB_REPOS\playspace\extensions\shader-graph\src\contributions\preview\shader-graph-preview.ts:159:26)
at PreviewScene.setMaterial (D:\Work_Related\GITHUB_REPOS\playspace\extensions\shader-graph\src\contributions\preview-scene.ts:17:28)
at Object.updateMaterial (D:\Work_Related\GITHUB_REPOS\playspace\extensions\shader-graph\src\contributions\scene.ts:110:22)
at PluginManager.executeSceneScript (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\builtin\scene\dist\script\3d\manager\plugin.ccc:1:2360)

Steps to reproduce the behavior:

  • Simply use the UV node in a graph and attempt to use a channel other than 0.

My current example is as follows:

image

  • OS: Win 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions