CustomAssets
Askowl Custom Assets
CustomAsset.Mutable.String Class Reference

CustomAsset that contains a string. Events are triggered every time the string changes More...

Inheritance diagram for CustomAsset.Mutable.String:
CustomAsset.Mutable.OfType< T > CustomAsset.Mutable.WithEmitter CustomAsset.Base

Static Public Member Functions

static String Instance (string path)
  More...
 
- Static Public Member Functions inherited from CustomAsset.Mutable.OfType< T >
static implicit operator T (OfType< T > t)
 All extraction by casting a custom object to the contained type. Same as getting the Value - as in myCustomAsset.Value === (MyCustomAsset) myCustomAsset More...
 
static new TC Instance< TC > (string path=null)
 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...
 
static TC New< TC > ()
 Create a new instance of the asset with a random name (GUID based) More...
 
static TC New< TC > (string name)
 Create a new instance of the asset with a supplied name. Note you can get duplicate names More...
 
static OfType< T > New (string name=null)
 Create a new instance dynamically 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...
 

Properties

string Text [get, set]
 Set or retrieve text contents More...
 
- Properties inherited from CustomAsset.Mutable.OfType< T >
virtual T Value [get, set]
 For safe(ish) access to the contents field More...
 

Additional Inherited Members

- Public Member Functions inherited from CustomAsset.Mutable.OfType< T >
override string ToString ()
 Pass string conversion responsibility from the custom asset to the containing value More...
 
virtual void Set (T toValue)
 For safe(ish) access to the contents field More...
 
override int GetHashCode ()
  More...
 
override bool Equals (object other)
 Part of the group of Equals functions. Passes responsibility to the containing data More...
 
void Load ()
 Basic load for a persistent custom asset More...
 
void Save ()
 Basic save for a persistent custom asset More...
 
- Public Member Functions inherited from CustomAsset.Base
void Initialiser ()
 Called by Managers MonoBehaviour More...
 
- 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.OfType< T >
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...
 
override void OnDisable ()
  More...
 
- Protected Member Functions inherited from CustomAsset.Base
virtual void Initialise ()
 Called by Managers MonoBehaviour or when mutual data is first accessed 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

◆ Instance()

static String CustomAsset.Mutable.String.Instance ( string  path)
static

Property Documentation

◆ Text

string CustomAsset.Mutable.String.Text
getset

Set or retrieve text contents

Definition at line 11 of file Mutable/String.cs.


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