![]() |
CustomAssets
Askowl Custom Assets
|
Typeless base class that has an emitter More...
Classes | |
class | Polling |
Poll to fire an event where no other mechanism exists More... | |
Public Attributes | |
readonly Emitter | Emitter = Emitter.Instance |
Emitter reference to tell others of data changes More... | |
![]() | |
string | Description => description |
Editor only description of what the asset is all about More... | |
Protected Member Functions | |
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... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
void | Initialiser () |
Called by Managers MonoBehaviour More... | |
![]() | |
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... | |
![]() | |
bool | Initialised |
More... | |
![]() | |
static readonly Emitter | InitialiseAssetEmitter = Emitter.SingleFireInstance |
triggered by scene load in Manager More... | |
static readonly Fifo< Base > | AssetsWaitingInitialisation = Fifo<Base>.Instance |
initialisation for all assets loaded before the related/first scene More... | |
Typeless base class that has an emitter
Definition at line 11 of file Mutable/OfType.cs.
|
protectedvirtual |
Reimplemented from CustomAsset.Base.
Reimplemented in CustomAsset.Mutable.OfType< T >.
Definition at line 37 of file Mutable/OfType.cs.
readonly Emitter CustomAsset.Mutable.WithEmitter.Emitter = Emitter.Instance |
Emitter reference to tell others of data changes
Definition at line 13 of file Mutable/OfType.cs.