ShaderMessage
Contains information about messages generated by Unity's Shader Compiler.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEditor
- Assembly: UnityEditor
- Implements: IEquatable<ShaderMessage>
public struct ShaderMessage : IEquatable<ShaderMessage>
Constructors
Constructor | Description |
|---|---|
| ShaderMessage(System.String,UnityEditor.Rendering.ShaderCompilerMessageSeverity) | Creates a new ShaderMessage with the given message and severity. |
Properties
Property | Description |
|---|---|
| file | The source file where the shader message was found. |
| line | The line of code where the shader message was found. |
| message | The message returned by the Unity Shader Compiler. |
| messageDetails | An (optional) detailed message returned from the Unity Shader Compiler. |
| platform | The specific platform where the Unity Shader Compiler discovered the message. |
| severity | Indicates the severity of the message returned from the Unity Shader Compiler. |
Methods
Method | Description |
|---|---|
| Equals | Compares two ShaderMessage on an element-by-element basis. |
| GetHashCode | Generates a hash value based on the contents of the message. |
Operators
Operator | Description |
|---|---|
| operator == | Returns true if all memebers of the two arguments are equal. |
| operator != | Returns true if any of the elements of the two arguments are not equal. |