Add multi UI props

I have in my UI a text prop (StringProperty) that i made in my addon, now i want that the user could press a button and it will add more and more StringProperty, how can i do that?
my problem is that i dont know how to register them (or to skip that part)…

You’re probably looking for a CollectionProperty. They’re basically Blender lists that you can use to have multiple instances of the same property. There’s some more info here:
https://docs.blender.org/api/current/bpy.props.html#collection-example
And here:

2 Likes