Table of Contents

Struct ExpiryTime

Represents an expiry time for a visual controlling how it will be rendered for.
float values can also be accepted in place of an explicit ExpiryTime, in which case it will be interpreted as the number of seconds the visual will last.

public readonly struct ExpiryTime

Constructors

ExpiryTime(float)

public ExpiryTime(float time)

Parameters

time float

Fields

Never

public static readonly ExpiryTime Never

Field Value

ExpiryTime

Methods

Expired()

Returns true if this item has expired.

public bool Expired()

Returns

bool

Expired(float)

Returns true if this item has expired.

public bool Expired(float currentTime)

Parameters

currentTime float

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ExpiryTime(float)

public static implicit operator ExpiryTime(float time)

Parameters

time float

Returns

ExpiryTime