JetBrains / JetBrains/resharper-unity

Rider Shader Variant feature doesn't work well and worsens the situation for .cginc files.

Open
#2,476 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Shader keywords are only detected with "#pragma" in shader files.

![Image](https://github.com/user-attachments/assets/bb9de57b-866f-4e80-9a38-fabe5a1de9a0)

But .cginc files function as a part of shader scripts that always don't need declarations of keywords. So those keyword branching parts are all grayed out, which makes editing inefficient. And they can't be enabled due to the incompetence of keyword detection.

![Image](https://github.com/user-attachments/assets/9dc0f9a0-d2e6-41a6-b51e-4831daf4ef5f)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.