Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>urp replace textNew to Visual Studio Code? Get it now.
urp replace text

urp replace text

wuxingogo

|
4 installs
| (0) | Free
Do replace text with json pattern file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

urp-replace-text README

"urp-replace-text" is a replace text tool.

Features

"urp-replace-text" is a text replacement tool for Unity's built-in shaders. It allows you to use regular expressions to replace text within selected URP shader code.

Demo: Assume that the configuration file is as follows:

{
    "/sampler2D (\\w+)/" : "TEXTURE2D($1); SAMPLER(sampler$1)",
}

It becomes like this:

fixed3 Mask = tex2D( _Control, i.uv[3].xy );

↓

half3 Mask = SAMPLE_TEXTURE2D( _Control, sampler _Control, i.uv[3].xy );

Shortcuts

1. replace text key : ctrl + Alt + R
2. open json file Key : Shift + Alt + O

Known Issues

Please post and view issues on GitHub

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft