Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Mastro on May 19, 2014, 07:55:47 PM

Title: UIButton OnClick function with a string parameter shows as "object"
Post by: Mastro on May 19, 2014, 07:55:47 PM
I wanted by button to call a function in a script to load the next scene.

Not sure if this is the best way but I created an empty gameobject and dragged my script on it. It has a public function and a parameter for string levelName.  However when I point to that object in the UIButton and that method, the arg0 wants an object and I can't type in the value in the designer. Using nGui 3.6.0
Title: Re: UIButton OnClick function with a string parameter shows as "object"
Post by: ArenMook on May 20, 2014, 12:58:09 PM
You can only find it to a property, such as game object's name. You can't specify a value directly by typing it.