Property Value
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
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.
public T Value { get; set; }
Property Value
- T
The value of this Optional instance.
Examples
This shows a typical example of how to use this class.
if (optionalMaterial.UseValue)
{
renderer.material = material;
} //else do not modify the material.