CustomAssets
Askowl Custom Assets
CustomAsset.Mutable.Trigger Class Reference

Dynamic custom asset without any values. Use it to trigger and listen to events More...

Inheritance diagram for CustomAsset.Mutable.Trigger:
CustomAsset.Mutable.WithEmitter CustomAsset.Base CustomAsset.Mutable.ChangeOverTime

Public Member Functions

virtual void Fire ()
 Call to fire off a Changed event, since we have no data to change... More...
 
- Public Member Functions inherited from CustomAsset.Base
void Initialiser ()
 Called by Managers MonoBehaviour More...
 

Static Public Member Functions

static Trigger Instance (string name)
 Retrieve a loaded instance of a named trigger More...
 
- Static Public Member Functions inherited from CustomAsset.Base
static T Instance< T > (string path)
 If this is a project asset, then you will need to reference it somewhere. Other classes can get a reference using Instance() or Instance(string name). Also useful for creating in-memory versions to share between hosts More...
 

Additional Inherited Members

- Public Attributes inherited from CustomAsset.Mutable.WithEmitter
readonly Emitter Emitter = Emitter.Instance
 Emitter reference to tell others of data changes More...
 
- Public Attributes inherited from CustomAsset.Base
string Description => description
 Editor only description of what the asset is all about More...
 
- Protected Member Functions inherited from CustomAsset.Mutable.WithEmitter
override void OnEnable ()
 Called when an asset is loaded and enabled. Used to ensure the custom asset does not leave memory prematurely and to load it if persistent More...
 
- Protected Member Functions inherited from CustomAsset.Base
virtual void Initialise ()
 Called by Managers MonoBehaviour or when mutual data is first accessed More...
 
virtual void OnDisable ()
 clear the decks as all is being destroyed More...
 
- Protected Attributes inherited from CustomAsset.Base
bool Initialised
  More...
 
- Static Protected Attributes inherited from CustomAsset.Base
static readonly Emitter InitialiseAssetEmitter = Emitter.SingleFireInstance
 triggered by scene load in Manager More...
 
static readonly Fifo< BaseAssetsWaitingInitialisation = Fifo<Base>.Instance
 initialisation for all assets loaded before the related/first scene More...
 

Detailed Description

Member Function Documentation

◆ Fire()

virtual void CustomAsset.Mutable.Trigger.Fire ( )
virtual

◆ Instance()

static Trigger CustomAsset.Mutable.Trigger.Instance ( string  name)
static

The documentation for this class was generated from the following file: