I am trying to spawn 3d objects when a "Pet" Icon is selected in the inventory, and display it like Player in the demo (Raw Character Image). I tried created my own Item View Attribute, and attempted to modify your code for spawning a pet after buying one at a shop, but I am getting a Null Error on the petPrefab. The Prefab is on the item, and the attribute name is correct. Ultimately I want it to look like a character select. Any help would be appreciated.
Code:
public override void SetValue(ItemInfo info)
{
var attribute = info.Item.GetAttribute(m_AttributeName);
if (attribute == null) { return; }
var petPrefab = info.Item.GetAttribute<Attribute<GameObject>>("PetPrefab").GetValue();
var instance = Instantiate(petPrefab);
}