Class ExposedProperty
An utility Class that Accelerates caching of both string properties and their integer values based on Shader.PropertyToID()
Namespace: UnityEngine.VFX.Utility
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
Addition(ExposedProperty, ExposedProperty)
Implicit string concatenation Operator
Declaration
public static ExposedProperty operator +(ExposedProperty self, ExposedProperty other)
Parameters
Type | Name | Description |
---|---|---|
ExposedProperty | self | |
ExposedProperty | other |
Returns
Type | Description |
---|---|
ExposedProperty |
Explicit(ExposedProperty to String)
Converts automatically an ExposedProperty to a string.
Declaration
public static explicit operator string (ExposedProperty parameter)
Parameters
Type | Name | Description |
---|---|---|
ExposedProperty | parameter |
Returns
Type | Description |
---|---|
String | The stored name. |
Implicit(String to ExposedProperty)
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(ExposedProperty to Int32)
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 |
---|---|
Int32 | The Shader.PropertyToID result |