Search Issue Tracker
By Design
Votes
0
Found in
2020.3.40f1
2021.3.10f1
2022.1.17f1
2022.2.0b8
2023.1.0a11
Issue ID
UUM-15641
Regression
No
HasProperty misleadingly returns true when no "_ST"-named property exists in Shader file
How to reproduce:
1. Open the attached “ShaderGraphST” project
2. Select the “Unlit_CustomShader” Shader
3. Select the “Bugs → List Texture Properties” button in the menu
Expected result: HasProperty returns false meaning that “baseColorTexture_ST” property doesn’t exist and no warning is thrown
Actual result: HasProperty returns true meaning that “baseColorTexture_ST” property exists and a corresponding warning is thrown
Reproducible with: 2020.3.40f1, 2021.3.10f1, 2022.1.17f1, 2022.2.0b8, 2023.1.0a11
Reproduced on: macOS 12.5 (Intel), Windows 11
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on BucketAllocator::Allocate when importing TextMeshPro assets
- Playmode dropdown creates continuous "Layout update is struggling" errors at certain aspect ratios
- Editor takes a long time to open VFX Graph 'Subgraph' asset when it is heavily referenced by multiple other VFX Graphs
- "Editor Event Handler Error" error is thrown when using Terrain Tool shortcuts
- Lights only visible in left eye in VR when using built-in pipeline
Resolution Note:
Auxiliary properties for textures are added to the material for each texture declared in the shader. The "_ST" one is not added if the [NoScaleOffset] attribute is present on the texture.
When you declare a custom vector property with the same name, it won't allow you to set the data on a non-texture property.