question

Alex avatar image
Alex asked

Display Properties Inventory (V2) Item Instance vs Catalog (V2) definition

Hi,

We want to define items for our game in the Catalog (V2) with some common Display Properties. We also want to have specific display properties for each item's instance in a player's inventory.

  • Does the inventory instance inherits the common display properties?

  • Can we use the inventory instance to track specific item stats by player?

Thanks!

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

There's no official inheritance, but each InventoryItem has an Id property that matches CatalogItem.Id. You can use this to combine all the display properties if that's what you need. InventoryItem.DisplayProperties is unique per instance so you can put anything there without worrying that it will affect other inventory items.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.