From 2879f7ab72a56a4069672485df98a2efcea6e1d6 Mon Sep 17 00:00:00 2001 From: Eric Serrat Date: Tue, 27 Aug 2024 13:25:25 +0200 Subject: [PATCH] feat: preserve property Id from asset data (#313) [SRV-1333](https://ready-player-me.atlassian.net/browse/SRV-1333) ## Description - Preserve the Id from the IAsset interface, so when stripped in mobile it does not remove it ## How to Test - Build a sdk version for android using stripping level high, try to run it in the android emulator [SRV-1333]: https://ready-player-me.atlassian.net/browse/SRV-1333?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ Co-authored-by: Harrison Hough Co-authored-by: Eric Serrat --- Runtime/AvatarCreator/Scripts/Interfaces/IAssetData.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Runtime/AvatarCreator/Scripts/Interfaces/IAssetData.cs b/Runtime/AvatarCreator/Scripts/Interfaces/IAssetData.cs index 86861126..b6688f39 100644 --- a/Runtime/AvatarCreator/Scripts/Interfaces/IAssetData.cs +++ b/Runtime/AvatarCreator/Scripts/Interfaces/IAssetData.cs @@ -1,7 +1,10 @@ +using UnityEngine.Scripting; + namespace ReadyPlayerMe.AvatarCreator { public interface IAssetData { + [Preserve] public string Id { get; set; } public AssetType AssetType { get; set; } }