How to add custom meta data for Properties/functions etc.

would this same logic apply to a property value within a function parameter being change by uproperty bool?
i have a function that checks what enum the user has choosen.
Based on the enum choice it would vary which parameters are hidden and which ones are visible