TriLib 2.1.9
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
TriLibCore.GCHelper Class Reference

Represents a class that forces GC collection using a fixed interval. More...

Inheritance diagram for TriLibCore.GCHelper:

Public Member Functions

void RegisterLoading ()
 Indicates a new model is loading.
 
void UnRegisterLoading (float interval)
 Indicates a model has finished loading or an error occurred.
 

Static Public Member Functions

static GCHelper GetInstance ()
 Gets the GCHelper instance and setup the given internal.
 

Public Attributes

float Interval = 0.5f
 The interval to do the GC Collection.
 

Properties

static int LoadingCount [get]
 Gets the number of models using the helper.
 

Detailed Description

Represents a class that forces GC collection using a fixed interval.

Member Function Documentation

◆ GetInstance()

static GCHelper TriLibCore.GCHelper.GetInstance ( )
static

Gets the GCHelper instance and setup the given internal.

Returns
The GCHelper singleton instance.

◆ UnRegisterLoading()

void TriLibCore.GCHelper.UnRegisterLoading ( float  interval)

Indicates a model has finished loading or an error occurred.

Parameters
intervalInterval used to decrease the model loading counter.