Class SoftAssetReferenceBase
The asset soft reference. Asset gets referenced (loaded) on actual use (ID reference is resolving it).
Inheritance
SoftAssetReferenceBase
Assembly: FlaxEngine.dll
File: Engine/Content/SoftAssetReference.h
Syntax
public class SoftAssetReferenceBase : public IAssetReference
Constructors
~SoftAssetReferenceBase()
Finalizes an instance of the SoftAssetReferenceBase class.
Declaration
public ~SoftAssetReferenceBase()
SoftAssetReferenceBase()
Initializes a new instance of the SoftAssetReferenceBase class.
Declaration
public SoftAssetReferenceBase() = default
Fields
_asset
_id
Changed
Action fired when field gets changed (link a new asset or change to the another value).
Declaration
public Delegate Changed
Field Value
|
Delegate
|
Methods
GetID()
OnAssetChanged(Asset* asset, void* caller)
Declaration
public virtual void OnAssetChanged(Asset* asset, void* caller) override
Parameters
|
Asset
asset
|
|
void
caller
|
Overrides
OnAssetLoaded(Asset* asset, void* caller)
Declaration
public virtual void OnAssetLoaded(Asset* asset, void* caller) override
Parameters
|
Asset
asset
|
|
void
caller
|
Overrides
OnAssetUnloaded(Asset* asset, void* caller)
Declaration
public virtual void OnAssetUnloaded(Asset* asset, void* caller) override
Parameters
|
Asset
asset
|
|
void
caller
|
Overrides
OnResolve(const ScriptingTypeHandle& type)
Declaration
protected void OnResolve(const ScriptingTypeHandle& type)
Parameters
|
ScriptingTypeHandle
type
|