diff --git a/Facepunch.Steamworks/Structs/UgcEditor.cs b/Facepunch.Steamworks/Structs/UgcEditor.cs index e1c28ac..5b61b11 100644 --- a/Facepunch.Steamworks/Structs/UgcEditor.cs +++ b/Facepunch.Steamworks/Structs/UgcEditor.cs @@ -121,7 +121,7 @@ namespace Steamworks.Ugc return this; } - public async Task SubmitAsync( IProgress progress = null ) + public async Task SubmitAsync( IProgress progress = null, Action onItemCreated = null ) { var result = default( PublishResult ); @@ -161,6 +161,9 @@ namespace Steamworks.Ugc fileId = created.Value.PublishedFileId; result.NeedsWorkshopAgreement = created.Value.UserNeedsToAcceptWorkshopLegalAgreement; result.FileId = fileId; + + if ( onItemCreated != null ) + onItemCreated( result ); }