| 1171 | } |
| 1172 | |
| 1173 | void onEngineLoaded(MAssembly* assembly) |
| 1174 | { |
| 1175 | PROFILE_MEM(Scripting); |
| 1176 | if (initFlaxEngine()) |
| 1177 | { |
| 1178 | LOG(Fatal, "Failed to initialize Flax Engine runtime."); |
| 1179 | } |
| 1180 | |
| 1181 | // Set flag |
| 1182 | _isEngineAssemblyLoaded = true; |
| 1183 | } |
| 1184 | |
| 1185 | void onEngineUnloading(MAssembly* assembly) |
| 1186 | { |