Operator implicit operator
implicit operator ExposedProperty(string)
Creates a new ExposedProperty from a string.
Declaration
public static implicit operator ExposedProperty(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | the string desired name |
Returns
Type | Description |
---|---|
ExposedProperty | The newly created ExposedProperty from name. |
implicit operator int(ExposedProperty)
Converts automatically an ExposedProperty to an int (based on Shader.PropertyToID())
Declaration
public static implicit operator int(ExposedProperty parameter)
Parameters
Type | Name | Description |
---|---|---|
ExposedProperty | parameter |
Returns
Type | Description |
---|---|
int | The Shader.PropertyToID result |