Title: Re: Toggle click event called after addChild
Post by: Holy Manfred on August 28, 2015, 05:12:43 PM
It sounds like you used OnValueChange to notify your function. I think UIToggle always calls OnValueChange initially to set its starting state at the beginning. After instantiating your prefab the toggle's initial value will be set and hence you'll get your toggleTest function called.