Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.0b10
Issue ID
924047
Regression
No
Custom Shader causes Selection Outline to stop working
Implementing a custom surface shader that uses a different name than "uv_MainTex" for its texture coordinates, causes the Selection Outline feature to stop working.
To reproduce:
1. Open the "Scene" scene in the attached project
2. Switch to Scene View
3. Enable "Selection Outline" in the Gizmos popup
4. Select "Test" Game Object from the Hierarchy
Desired outcome: The Selection Outline is displayed.
Actual result: The Selection Outline is not displayed.
Reproduced with 5.5.4p1, 5.6.0b3, 5.6.2f1, 2017.1.0a1, 2017.1.0f1, 2017.2.0a1, 2017.2.0b1
Update: The issue is marked as 'won't fix' because Unity currently does not have a well-developed mechanism for writing 'tool specific shaders'. Many of the scene view tools have some minor workarounds embedded in them to work for the majority of cases. In the case of scene view selected tool, a custom pixel shader is bound onto the vertex shader that is passed in by the user. If the vertex and pixel shader do not match properly then it leads to odd results.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment