Skip to content

Commit

Permalink
feat: preserve property Id from asset data (#313)
Browse files Browse the repository at this point in the history
[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]>
  • Loading branch information
3 people authored Aug 27, 2024
1 parent ba3c1a2 commit 2879f7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Runtime/AvatarCreator/Scripts/Interfaces/IAssetData.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using UnityEngine.Scripting;

namespace ReadyPlayerMe.AvatarCreator
{
public interface IAssetData
{
[Preserve]
public string Id { get; set; }
public AssetType AssetType { get; set; }
}
Expand Down

0 comments on commit 2879f7a

Please sign in to comment.