I have several UI elements that call some clickButton() method when clicked.
To distinguish between different elements, i would like to pass an identifier as a parameter (like a name)
Is it possible to let unity auto generate those identifiers (by writing something like this.name), so when i copy this element 100 times, i don’t have to manually change 100 parameters to send
You could certainly write a custom component that captures mouse clicks and publishes an event with its object name. (Though using a handle would probably make more sense than a name; names are not guaranteed to be unique.)