MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Save

Method Save

Source/Editor/Windows/Assets/ModelWindow.cs:322–343  ·  view source on GitHub ↗

()

Source from the content-addressed store, hash-verified

320
321 /// <inheritdoc />
322 public override void Save()
323 {
324 if (!IsEdited)
325 return;
326 if (_asset.WaitForLoaded())
327 return;
328
329 foreach (var child in _tabs.Children)
330 {
331 if (child is Tab tab && tab.Proxy.Window != null)
332 tab.Proxy.OnSave();
333 }
334
335 if (_asset.Save())
336 {
337 Editor.LogError("Cannot save asset.");
338 return;
339 }
340
341 ClearEditedFlag();
342 _item.RefreshThumbnail();
343 }
344
345 /// <inheritdoc />
346 protected override void UnlinkItem()

Callers 4

SaveDataFunction · 0.45
SaveSurfaceMethod · 0.45
SaveSurfaceMethod · 0.45
SaveSurfaceMethod · 0.45

Calls 4

WaitForLoadedMethod · 0.80
RefreshThumbnailMethod · 0.80
OnSaveMethod · 0.45
LogErrorMethod · 0.45

Tested by

no test coverage detected