Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/9
Shader Exposer package provides an easy way to access shader's properties with no need to hardcode their names.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2021.3.1f1
Compatible
Compatible
Compatible
Description

The package allows you to select shaders, which properties you want to be able to retrieve or modify in code and creates associated scripts for them. These scripts have fast access to shader's properties and provide their names and cached IDs. Also, they allow you to get and set local keywords values.


The package is suitable for all situations, where you need to explore available shader's properties and then get the values or set them in the given material.


With easy setup and usage, you surely will be satisfied.

Technical details

Which shaders are supported?

All shaders are supported, including ShaderGraph shaders


How to start?

  1. Create the "Exposed Shader" from the project context menu.
  2. Select shaders you want to expose.
  3. Click the "Clear and create new exposing scripts" button.

How to get an instance?

  • Create new by putting reference material in the constructor.
  • Mark field as serialized to set the reference material from the inspector.

How to use?

  • All shader's properties and keywords are available from the exposing script's properties.
  • Shader's properties names and cached IDs are available as static fields.
  • Shader's keywords names are available as static fields.
  • The exposed shader name is also available as the static field.
  • Check if the material is assigned using the HasReference property.

Additional info you can find in Readme.txt

Shader Exposer

(not enough ratings)
4 users have favourite this asset
(4)
$4.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
102.6 KB
Latest version
1.1
Latest release date
Sep 14, 2022
Original Unity version
2021.3.1
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR