Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


explicit operator ShaderTagId

Converts a string to a ShaderTagId.
Read time 1 minuteLast updated 12 days ago

Definition

explicit operator ShaderTagId(ShaderTagI)

Converts a string to a
ShaderTagId
.
public static explicit operator ShaderTagId(string name)

Parameters

name

The string to represent as a
ShaderTagId
.

Returns

Type

Description

ShaderTagId

Remarks

Gets or creates an identifier representing the given string. 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 identifier. This is equivalent to accessing the ShaderTagId.name property.