Base class for scripts that can be loaded from assets. More...
Public Member Functions | |
virtual ksScriptAsset | Clone () |
Creates a copy of the script with the value of all members tagged with ksEditable or ksCloneable copied. More... | |
Properties | |
static ksBaseAssetLoader | Assets [get, set] |
Asset loader singleton. Set this to supply a custom asset loader. More... | |
uint | AssetId [get, set] |
The id of the asset. Zero means it is not an asset. More... | |
string | AssetPath [get, set] |
The asset path. More... | |
bool | IsPrefab [get, set] |
Is this a prefab asset? If true, this is the asset returned by ksBaseAssetLoader.Get<T>(uint, bool). More... | |
string? | AssetName [get] |
The name of the asset. More... | |
Base class for scripts that can be loaded from assets.
|
virtual |
Creates a copy of the script with the value of all members tagged with ksEditable or ksCloneable copied.
Arrays, lists, and dictionaries are cloned. Other object references will reference the same object.
Reimplemented in KS.Reactor.ksPlayerController.
|
getset |
The id of the asset. Zero means it is not an asset.
|
get |
The name of the asset.
This is the part of the AssetPath after the last '/'.
|
getset |
The asset path.
|
staticgetset |
Asset loader singleton. Set this to supply a custom asset loader.
|
getset |
Is this a prefab asset? If true, this is the asset returned by ksBaseAssetLoader.Get<T>(uint, bool).