Constructor. Creates the attribute to store UI category and weight.
Smart pointer to the created attribute.