- Home /
Is there a way to get the Argument of a Listener?
So I have a Listener I've added to an EventTrigger through the inspector. (using version 2018.2.18) Now I'm wondering if there is a way to retrieve that listener's argument from code. In the docs I can get as far as 'GetPersistentTarget' which returns an object. But I'm not sure if there is a way to get the argument that was entered through the inspector.
Is this even possible?
For clarity; I'm trying to get this field entered via the inspector, but getting it through code at runtime.
Your answer
Follow this Question
Related Questions
Do we need to remove button click listener added from inspector? 0 Answers
AddListener with argument on multiple Buttons 1 Answer
How to access the persistent listener gameobjects on a button? 1 Answer
Split Screen Game Audio Listeners 5 Answers
Unity 4.6 - Editor Scripting - Add Reflection Method as a Persistent Listener 1 Answer