Click or drag to resize

OptionalTValue Property

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.

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public T Value { get; set; }

Property Value

Type: 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.
See Also