explicit operator ShaderTagId
Converts a string to a ShaderTagId.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Operator
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
explicit operator ShaderTagId(ShaderTagI)
Converts a string to a ShaderTagId.
public static explicit operator ShaderTagId(string name)
Parameters
The name to represent the shader tag id.
Returns
Type | Description |
|---|---|
| ShaderTagId |
Remarks
Gets or creates a shader tag id representing the given name. This is equivalent to using the constructor for ShaderTagId.
explicit operator string(Strin)
Converts a ShaderTagId to a string.
public static explicit operator string(ShaderTagId tagId)
Parameters
The ShaderTagId to get the name of.
Returns
Type | Description |
|---|---|
| string |
Remarks
Gets the name of the tag referred to by the shader tag id. This is equivalent to accesing the ShaderTagId.name property.