Class Optional<T>
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Useful for displaying optional values in the inspector.
[Serializable]
public class Optional<T> : Optional
Type Parameters
T
The type of the optional value.
- Inheritance
-
Optional<T>
- Derived
- Inherited Members
- Extension Methods
Remarks
For this class to be displayable in the inspector you cannot use it directly. You have to use one of the provided subclasses (or derive your own).
Properties
- UseValue
Gets or sets whether to use the value of this instance.
- Value
The value of this instance. It should only be used if UseValue is true. Otherwise, some other value should be used, or code that does not need it must be executed instead.