-----------------------------------------------------------------------------
| 375 | |
| 376 | //----------------------------------------------------------------------------- |
| 377 | bool AssetBase::saveAsset() |
| 378 | { |
| 379 | // Set the format mode. |
| 380 | Taml taml; |
| 381 | |
| 382 | // Yes, so set it. |
| 383 | taml.setFormatMode(Taml::getFormatModeEnum("xml")); |
| 384 | |
| 385 | // Turn-off auto-formatting. |
| 386 | taml.setAutoFormat(false); |
| 387 | |
| 388 | // Read object. |
| 389 | bool success = taml.write(this, AssetDatabase.getAssetFilePath(getAssetId())); |
| 390 | |
| 391 | if (!success) |
| 392 | return false; |
| 393 | |
| 394 | return true; |
| 395 | } |
| 396 | |
| 397 | //----------------------------------------------------------------------------- |
| 398 |
no test coverage detected