Skip to content

Commit 2879f7a

Browse files
ericserratHarrisonHoughEric Serrat
authored
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 <[email protected]> Co-authored-by: Eric Serrat <[email protected]>
1 parent ba3c1a2 commit 2879f7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Runtime/AvatarCreator/Scripts/Interfaces/IAssetData.cs

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
using UnityEngine.Scripting;
2+
13
namespace ReadyPlayerMe.AvatarCreator
24
{
35
public interface IAssetData
46
{
7+
[Preserve]
58
public string Id { get; set; }
69
public AssetType AssetType { get; set; }
710
}

0 commit comments

Comments
 (0)