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

Method initializeAsset

Engine/source/T3D/assets/GameObjectAsset.cpp:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void GameObjectAsset::initializeAsset()
133{
134 //Ensure we have an expanded filepath
135 mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
136
137 if (Torque::FS::IsScriptFile(mScriptPath))
138 Con::executeFile(mScriptPath, false, false);
139
140 mTAMLPath = getOwned() ? expandAssetFilePath(mTAMLFile) : mTAMLPath;
141}
142
143void GameObjectAsset::onAssetRefresh()
144{

Callers

nothing calls this directly

Calls 2

IsScriptFileFunction · 0.85
executeFileFunction · 0.85

Tested by

no test coverage detected