| 1138 | } |
| 1139 | |
| 1140 | Asset* Content::CreateVirtualAsset(const MClass* type) |
| 1141 | { |
| 1142 | CHECK_RETURN(type, nullptr); |
| 1143 | const auto scriptingType = Scripting::FindScriptingType(type->GetFullName()); |
| 1144 | if (scriptingType) |
| 1145 | return CreateVirtualAsset(scriptingType); |
| 1146 | LOG(Error, "Failed to find asset type '{0}'.", String(type->GetFullName())); |
| 1147 | return nullptr; |
| 1148 | } |
| 1149 | |
| 1150 | Asset* Content::CreateVirtualAsset(const ScriptingTypeHandle& type) |
| 1151 | { |
nothing calls this directly
no test coverage detected