Skip to content

Is there a prefered way to extend InventoryItems to add additional properties? #45

Answered by scriptsengineer
tupcakes asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Yes this is already planned to be added. In the develop branch, the editor item is being added, which will add custom properties to the item with a dictionary, but to have complete integration with the editor, more work is needed.
Even without a full editor, you can still edit these properties in the resource inspector.

This develop will be released by the end of this month if everything goes well!

I'm still going to study if the "weight" can be a basic property of the InventoryItem.

You can also extend the InventoryItem, creating for example the InventoryItemWeight, which will have the property you expect.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@scriptsengineer
Comment options

Answer selected by tupcakes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants