Class DatumProperty<TValue, TDatum>
Class used as a serialized field in a component for containing a typed value that is either
directly serialized as a constant value or a reference to a Scriptable
Inherited Members
Namespace: Unity.XR.CoreUtils .Datums
Assembly: solution.dll
Syntax
[Serializable]
public abstract class DatumProperty<TValue, TDatum> where TDatum : Datum<TValue>
Type Parameters
Name | Description |
---|---|
TValue | Value type. |
TDatum | Datum asset type. |
Constructors
Name | Description |
---|---|
Datum |
Default constructor which creates an empty datum asset reference. |
Datum |
Constructor setting initial value for the embedded constant. |
Datum |
Constructor setting initial datum asset reference. |
Properties
Name | Description |
---|---|
Constant |
The current constant value used when this property is set to "Use Value". |
Datum | The current datum asset reference used when this property is set to "Use Asset". |
Value | Accessor for internal value held by this container. Getter/Setter uses the constant value if this property is set to "Use Value" and the associated datum's value is referenced if this property is set to "Use Asset". |
Operators
Name | Description |
---|---|
implicit operator TValue(Datum |
Operator making it easy to treat the container property as the underlying internal value. |