CustomAssets
Askowl Custom Assets
CustomAsset.Mutable.Float Class Reference

Float CustomAsset contains a float value which can be connected directly to OnValueChange callbacks in UI slider and scrollbar components. Connect it to event listeners to interact with components such as Animation, Text or Unity. Or add listeners to your own classes with Register(this) More...

Inheritance diagram for CustomAsset.Mutable.Float:
CustomAsset.Mutable.OfType< float >

Public Member Functions

override void Set (float toValue)
  More...
 
- Public Member Functions inherited from CustomAsset.Mutable.OfType< float >
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...
 

Static Public Member Functions

static Float Instance (string name)
  More...
 
static new Float New (string name)
  More...
 
static Float New ()
  More...
 
- Static Public Member Functions inherited from CustomAsset.Mutable.OfType< float >
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...
 

Properties

float Minimum [get, set]
 The smallest value a Float can be set to More...
 
float Maximum [get, set]
 The largest value a Float can be set to More...
 
- Properties inherited from CustomAsset.Mutable.OfType< float >
virtual T Value [get, set]
 For safe(ish) access to the contents field More...
 

Additional Inherited Members

- Protected Member Functions inherited from CustomAsset.Mutable.OfType< float >
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...
 

Detailed Description

Member Function Documentation

◆ Instance()

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

◆ New() [1/2]

static new Float CustomAsset.Mutable.Float.New ( string  name)
static

◆ New() [2/2]

static Float CustomAsset.Mutable.Float.New ( )
static

◆ Set()

override void CustomAsset.Mutable.Float.Set ( float  toValue)

Property Documentation

◆ Maximum

float CustomAsset.Mutable.Float.Maximum
getset

◆ Minimum

float CustomAsset.Mutable.Float.Minimum
getset

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