How do I create AActor child from UObject

What was I need to do is create an independent actor class (get away thought that this actor has to be its child!) which has UObject as an attribute and you can spawn everywhere that actor class.
Lets imagine we have WeaponItem as UObject. What does that item as UObject?

  • Ammo Clip
  • Static Mesh
  • Thumbnail
  • Ammo
  • Installments

What your SpawnableWeaponActor will have is :

  • Static Mesh component
  • WeaponItem