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

Method onAssetRefresh

Engine/source/T3D/assets/GameObjectAsset.cpp:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void GameObjectAsset::onAssetRefresh()
144{
145 //Ensure we have an expanded filepath
146 mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
147
148 if (Torque::FS::IsScriptFile(mScriptPath))
149 Con::executeFile(mScriptPath, false, false);
150
151 mTAMLPath = getOwned() ? expandAssetFilePath(mTAMLFile) : mTAMLPath;
152}
153
154void GameObjectAsset::setScriptFile(const char* pScriptFile)
155{

Callers

nothing calls this directly

Calls 2

IsScriptFileFunction · 0.85
executeFileFunction · 0.85

Tested by

no test coverage detected