MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setAssetAutoUnload

Method setAssetAutoUnload

Engine/source/assets/assetBase.cpp:168–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166//-----------------------------------------------------------------------------
167
168void AssetBase::setAssetAutoUnload(const bool autoUnload)
169{
170 // Ignore no change.
171 if (mpAssetDefinition->mAssetAutoUnload == autoUnload)
172 return;
173
174 // Update.
175 mpAssetDefinition->mAssetAutoUnload = autoUnload;
176
177 // Refresh the asset.
178 refreshAsset();
179}
180
181//-----------------------------------------------------------------------------
182

Callers 1

copyToMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected