From 88902bdb5d758418b000ccaf51a2f2f19085f895 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 20 Jul 2021 16:29:34 +0200 Subject: [PATCH] Add `JsonSerializer.ParseID` with return value --- Source/Engine/Serialization/JsonSerializer.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Engine/Serialization/JsonSerializer.cs b/Source/Engine/Serialization/JsonSerializer.cs index a89ade8ef..fe2d6b903 100644 --- a/Source/Engine/Serialization/JsonSerializer.cs +++ b/Source/Engine/Serialization/JsonSerializer.cs @@ -368,6 +368,17 @@ namespace FlaxEngine.Json return GetStringID(&id); } + /// + /// Parses the given object identifier represented in the internal serialization format. + /// + /// The ID string. + /// The identifier. + public static Guid ParseID(string str) + { + ParseID(str, out var id); + return id; + } + /// /// Parses the given object identifier represented in the internal serialization format. ///