I tested this and should work. SelectedDataHelper.GetVariableHandlers(_EquipmentShortcut)[0].Set("Test", "Works"); print(SelectedDataHelper.GetVariableHandlers(_EquipmentShortcut)[0].GetString("Test"));
I use this in Items to track Inventory Grid Position on custom inventory UI
Or, a lot easier than this approach, since you already have the EquipmentShortcut instance of the equipment:
equipment.Variables.Set("key", "value");
The Variables property of the EquipShortcut (also for ItemShortcut and AbilityShortcut) allows direct access to the variable handler of the instanced equipment.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
SelectedDataHelper.GetVariableHandlers(_EquipmentShortcut)[0].Set("Test", "Works");
print(SelectedDataHelper.GetVariableHandlers(_EquipmentShortcut)[0].GetString("Test"));
I use this in Items to track Inventory Grid Position on custom inventory UI
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
equipment.Variables.Set("key", "value");
The Variables property of the EquipShortcut (also for ItemShortcut and AbilityShortcut) allows direct access to the variable handler of the instanced equipment.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!