Download

Objects extending UObject arent able to be set in editor?

I have created base classes in c++ extending AInfo, (Item_Base, Weapon_Base). I created a new class that inherits from Item_Base called Item_Equipment. I created blueprint classes based on each c++ class. Weapon_Base has an Item_Equipment variable. I tried to set the variable in the editor under class defaults, but even though it seems to be eligible (green outline) it stays default. If I change the variable type from Item_Equipment or Item_Base to UObject, I can select the default variables normally. Is there a workaround to establishing class default variables inside the editor for custom classes that extend Actor?

UPROPERTY(…) TSubclassOf<Item_Base> Blah;

1 Like

Thanks so much! Works like a charm.