Next: Photon Pickable Item, Previous: Photon Active Item, Up: Network.Inventory [Contents][Index]
Photon Local Inventory stores inventory data in a binary file on the player’s machine, and when they instantiate an inventory item, MultiGame ensures that the other clients instantiate the same one correctly. Place on the Player prefab for persistent, Photon-sychronized inventory.Takes a list of Equip Slots representing the transforms where we instantiate and parent equipment which corresponds to the ’Usage Slot’ for each Photon Pickable Item.
To create a new inventory item, first create two copies of the same model in the Scene View, add a ’Photon Pickable Item’ to the first and a ’Photon Active Item’ to the second. The ’Photon Active Item’ should now have components added to it for any particle effects or game behavior you want it to have. Finally, place this object in a folder named ’Resources’ anywhere in your Project View. Adjust the settings on the ’Photon Pickable Item’ and place it next to the other prefab in the Project View as well.