# ShaderData.PreprocessedVariant

> Represents the results of preprocessing a variant using ShaderData.Pass.PreprocessVariant.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct ShaderData.PreprocessedVariant
```

## Properties

| Property                                                                                                           | Description                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Messages](/engine/6000.6/script-reference/unityeditor/shaderdata/preprocessedvariant/messages.md)                 | Stores errors and warnings produced during preprocessing (Read Only).                                                                                                                                                                                                           |
| [PreprocessedCode](/engine/6000.6/script-reference/unityeditor/shaderdata/preprocessedvariant/preprocessedcode.md) | Stores the preprocessed code for the shader variant (Read Only).                                                                                                                                                                                                                |
| [Success](/engine/6000.6/script-reference/unityeditor/shaderdata/preprocessedvariant/success.md)                   | Indicates whether the variant preprocessing succeeded (Read Only). If it did, this is true. Otherwise, this is false and [ShaderData.PreprocessedVariant.Messages](/engine/6000.6/script-reference/unityeditor/shaderdata/preprocessedvariant/messages.md) contains the errors. |
