Class ExposedProperty
An utility Class that Accelerates caching of both string properties and their integer values based on Shader.PropertyToID()
Inherited Members
Namespace: UnityEngine .VFX.Utility
Assembly: Unity.VisualEffectGraph.Runtime.dll
Syntax
[Serializable]
public class ExposedProperty
Constructors
ExposedProperty()
Default Constructor
Declaration
public ExposedProperty()
Methods
ToString()
The string value of this ExposedProperty
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Operators
operator +(ExposedProperty, ExposedProperty)
Implicit string concatenation Operator
Declaration
public static ExposedProperty operator +(ExposedProperty self, ExposedProperty other)
Parameters
Type | Name | Description |
---|---|---|
Exposed |
self | |
Exposed |
other |
Returns
Type | Description |
---|---|
Exposed |
explicit operator string(ExposedProperty)
Converts automatically an ExposedProperty to a string.
Declaration
public static explicit operator string(ExposedProperty parameter)
Parameters
Type | Name | Description |
---|---|---|
Exposed |
parameter |
Returns
Type | Description |
---|---|
string | The stored name. |
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 |
---|---|
Exposed |
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 |
---|---|---|
Exposed |
parameter |
Returns
Type | Description |
---|---|
int | The Shader.PropertyToID result |