Search Unity

Can I do this thing that I don't even have a name for?

Discussion in 'UGUI & TextMesh Pro' started by chilton, Jul 22, 2019.

  1. chilton

    chilton

    Joined:
    May 6, 2008
    Posts:
    564
    I honestly can't remember what this concept is called.

    I want to know the name of the game object that called a particular function when onValueChanged happens.

    For example, I name two sliders "LaunchAngle" and "RocketFuel", then set both of their OnValueChanged target in the inspector to the same function in a component I wrote.

    From that component, can I tell which slider made the call?