Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

How to retrieve item name?

$
0
0
This was what I found on the internet:

string myItemName = myItem.Content.SubtypeName.ToString()

But that doesn't work, it fails with the an error:

'MyInventoryItem' does not contain a definition for 'Content' and no extension method 'Content' accepting a first argument of type 'MyInventoryItem' could be found

I assume that something has changed. I tried to get the new property names via reflection, but that didn't work out because it's...

How to retrieve item name?

Viewing all articles
Browse latest Browse all 903

Trending Articles