decentraland / unity-renderer

Unity implementation of Decentraland Client
https://play.decentraland.org
Apache License 2.0
136 stars 93 forks source link

Add smart item badge to wearables with portable experiencies #1646

Closed olavra closed 2 years ago

olavra commented 2 years ago

Wearables can now hold portable experiences. This means that equipping them will trigger code. To differentiate this wearables from the rest, we need to add them a badge in the same way we do we smart items in the builder.

In order to know if a wearable contains a portable experience, this information will coming from the lambda call of wearables, the subgraph can check the itemType prop to check if its wearable_v2 or smart_wearable_v1

Screen Shot 2021-12-15 at 14.53.01.png

Testing https://play.decentraland.org/?BUILDER_SERVER_URL=https%3A%2F%2Fbuilder-api.decentraland.org%2Fv1&DEBUG_MODE=true&NETWORK=ropsten&WITH_COLLECTIONS=43e8f43a-f260-4360-a83a-d447116cf96d&island=I1ek&position=-14%2C0&realm=artemis

olavra commented 2 years ago

@RominaMarchetti we will need to have this reviewed by you