Ugc Editor, on item created callback

This commit is contained in:
kamyker 2020-10-29 17:26:32 +01:00
parent b4de0927f3
commit 8be43b4dde

View File

@ -121,7 +121,7 @@ namespace Steamworks.Ugc
return this;
}
public async Task<PublishResult> SubmitAsync( IProgress<float> progress = null )
public async Task<PublishResult> SubmitAsync( IProgress<float> progress = null, Action<PublishResult> 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 );
}