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