Foundation package allows to use node shorcut in hacky-style.
npm install kr.seonghwan.shadergraph-key2nodeReference - Unity Forum Thread by DigitalSalmon.
Packages/manifest.json ... ``json`
{
"dependencies": {
"kr.seonghwan.shadergraph-key2node": "1.0.0"
}
}
`json`
{
"scopedRegistries": [
{
"name": "NPM",
"url": "https://registry.npmjs.org",
"scopes": [
"kr.seonghwan"
]
}
]
}
$3
run menuitem Tools/ShaderGraph Key2Node/Force Resolve$3
You don't have to. this is an expedient to avoid modifying the Shader Graph packge in every project. We can mofidy the original package caches in appdata, but it's local way so its not fit. I tried to implement this feature without editing original package by hooking several functions in loaded assembly on unity editor but it requires lots of things to consider. $3
1. script installs static delegates at the source file in ProjectRoot/Library/PackageCache/com.unity.shadergraph@x.x.x/editor/drawing/views/grapheditorview.cs
2. add callbacks to installed delegate when domain reloaded. ([InitializedOnLoad]`)