MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnResolve

Method OnResolve

Source/Engine/Content/Asset.cpp:212–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void SoftAssetReferenceBase::OnResolve(const ScriptingTypeHandle& type)
213{
214 ASSERT(!_asset);
215 _asset = ::LoadAsset(_id, type);
216 if (_asset)
217 _asset->AddReference(this);
218}
219
220Asset::Asset(const SpawnParams& params, const AssetInfo* info)
221 : ManagedScriptingObject(params)

Callers 2

GetMethod · 0.80
GetMethod · 0.80

Calls 2

LoadAssetFunction · 0.85
AddReferenceMethod · 0.45

Tested by

no test coverage detected