Logic for retrieving ItemAttributes from inventory

Bempa

New member
Hi!

Backstory
I have set up a inventory for a collection of playable characters that the player can collect and choose from. Among other things the Character-category got a attribute that is a gameobject, 3dmodel, that so far is used for preview in the Character-inventory window.
I got this set up by extending the ValueAttributeBox-class and retrieving the model-gameobject in the SetValue-method.

My problem
When the player has chosen its character a new scene loads. The players chosen character is stored in the EquipedCharacter-collection and the rest of the characters is in a PlayerAvailableCharacters-Collection and the inventory saves and loads to the next scene as it should.
In the next scene i need to retrieve the model-attribute's for all of the characters in both PlayerAvailableCharacters as well as EquipedCharacter-collections, to make them pose before the actual gameplay starts.

Edit:
I solved it on my own. Hope i did not waste anyones time :)
 
Last edited:
Top