# ShaderPropertyFlags

> Flags that control how a shader property behaves.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
[Flags]
public enum ShaderPropertyFlags
```

## Remarks

When the Unity Editor compiles a ShaderLab script, it assigns shader property flags to its shader properties based on the attributes you assign to those properties. For example, if you add the "\[HideInInspector]" attribute to a shader property declaration, Unity sets the [HideInInspector](/engine/6000.0/script-reference/unityengine/hideininspector.md) flag when it compiles the script. If you add more than one attribute to a property, the Editor combines the flags using a bitwise OR operation.

## Fields

| Value                                                                                                                             | Description                                                                                                                                                                                                                                                    |
| --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Gamma](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/gamma.md)                                       | Signifies that values of this property are in gamma space. If the active color space is linear, Unity converts the values to linear space values.                                                                                                              |
| [HDR](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/hdr.md)                                           | Signifies that values of this property contain High Dynamic Range (HDR) data.                                                                                                                                                                                  |
| [HideInInspector](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/hideininspector.md)                   | Signifies that Unity hides the property in the default Material Inspector.                                                                                                                                                                                     |
| [MainColor](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/maincolor.md)                               | Signifies that value of this property contains the main color of the Material.                                                                                                                                                                                 |
| [MainTexture](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/maintexture.md)                           | Signifies that value of this property contains the main texture of the Material.                                                                                                                                                                               |
| [None](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/none.md)                                         | No flags are set.                                                                                                                                                                                                                                              |
| [NonModifiableTextureData](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/nonmodifiabletexturedata.md) | You cannot edit this Texture property in the default Material Inspector.                                                                                                                                                                                       |
| [Normal](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/normal.md)                                     | Signifies that values of this property contain Normal (normalized vector) data.                                                                                                                                                                                |
| [NoScaleOffset](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/noscaleoffset.md)                       | Do not show UV scale/offset fields next to Textures in the default Material Inspector.                                                                                                                                                                         |
| [PerRendererData](/engine/6000.0/script-reference/unityengine/rendering/shaderpropertyflags/perrendererdata.md)                   | In the Material Inspector, Unity queries the value for this property from the Renderer's [MaterialPropertyBlock](/engine/6000.0/script-reference/unityengine/materialpropertyblock.md), instead of from the Material. The value will also appear as read-only. |
