Open shader-related files in JetBrains Rider, while keeping C# scripts opening in your primary IDE (Visual Studio / VS Code / etc.).
Unity can only select one External Script Editor. This package gives you a split workflow:
- C# → your main IDE
- Shader/HLSL/etc. → Rider
UPM package name: com.clerin.unity.shader-ide-bridge-rider
Unity: Window > Package Manager > + > Add package from git URL...
https://github.com/jinhyeonseo01/UnityShaderIDEBridge-Rider.git
Specific version tag:
https://github.com/jinhyeonseo01/UnityShaderIDEBridge-Rider.git#v1.0.0
- Unity:
Edit > Preferences > External Tools - Set External Script Editor to your C# IDE (Visual Studio / VS Code / etc.)
- Open Project Settings:
Project > Clerin > Shader IDE Bridge
| Setting | Meaning |
|---|---|
| Enable OnOpenAsset Bridge | Intercept shader files and open them in Rider |
| Enable Diagnostics Warnings | Log warnings if Rider cannot be resolved |
Note: If your External Script Editor is already Rider, the bridge stays inactive (Unity default behavior), and the manual menu is hidden/disabled.
- Hooks Unity’s
OnOpenAssetonly for shader-related extensions - Does not change Unity’s External Script Editor setting
- Finds Rider via Toolbox / Program Files / PATH / env vars, then launches with line support (
--line) - Includes Diagnostics so you can see why Rider was (not) detected
.shader, .compute, .hlsl, .cginc, .glslinc, .cg
- Unity 6000.3.x (Unity 6.3 baseline)
- JetBrains Rider installed
- Unity package
com.unity.ide.rider(declared inpackage.json)
Set one of these environment variables to Rider’s executable:
RIDER_PATH(preferred)JETBRAINS_RIDER_PATHJETBRAINS_RIDER
Windows example:
C:\Program Files\JetBrains\JetBrains Rider 2025.x\bin\rider64.exe
- Double-click a supported shader file in the Unity Project window.
- Select a supported asset
Tools > Clerin > Shader IDE Bridge > Open In Rider
Tools > Clerin > Shader IDE Bridge > Validate Rider Shader SetupTools > Clerin > Shader IDE Bridge > Clear Rider Cache(forces a fresh path scan on next open)
- No custom include indexing / mirroring
- No extra language service or parsing layer
→ Rider handles Shader/HLSL parsing, navigation, and include resolution.
- Run:
Tools > Clerin > Shader IDE Bridge > Validate Rider Shader Setup - Set
RIDER_PATHto avoid path probing on first open.
- Only the listed extensions are handled.
- If External Script Editor is Rider, interception is disabled by design.
- Confirm External Script Editor is not Rider (this package is for split-IDE setups).
MIT — see LICENSE.md
