Welcome,
Guest
. Please
login
or
register
.
April 30, 2026, 05:54:57 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Creating uibutton on runtime
« previous
next »
Print
Pages: [
1
]
Author
Topic: Creating uibutton on runtime (Read 2287 times)
dsanchez
Guest
Creating uibutton on runtime
«
on:
January 25, 2013, 09:04:57 AM »
Hello,
I'm trying to create a button on runtime by code but I don't know how. I'm trying to use the AddWidget<T> method but it doesn't work. In the other hand, if I could create it, how should I assign it a "click" method dynamically??
Best regards.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Creating uibutton on runtime
«
Reply #1 on:
January 25, 2013, 10:48:06 AM »
Look inside UICreateWidgetWizard.cs. Everything inside is created by code, including buttons.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Creating uibutton on runtime