Table of Contents

Class Optional<T>

Namespace
Gamelogic.Extensions
Assembly
Assembly-CSharp.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.

public bool UseValue { get; set; }

Property Value

bool

true if this value should be used; otherwise, false.

Value

public T Value { get; set; }

Property Value

T

Methods

ToString()

public override string ToString()

Returns

string