question

benjigamedev avatar image
benjigamedev asked

Customdata null ref

Hi,

I try to get the custom data of my items like,

ItemInstance item = result.Inventory[i];

string text = item.CustomData["level"];

but i get i null ptr? in the gamemanager item the data is set.

thanks

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

·
brendan avatar image
brendan answered

Custom Data in the item is distinct from the Catalog. Please see this post for more info on this:

https://community.playfab.com/questions/3958/empty-custom-data-for-item-instances.html

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.