Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: bDonsbach on July 02, 2015, 01:56:14 PM

Title: UIButton inheritance hiding member variables.
Post by: bDonsbach on July 02, 2015, 01:56:14 PM
I apologize if this question has already come up.

I have a script, let's call it ButtonChild, that I need to inherit from UIButton, but when I do, all the public variables in ButtonChild are missing from the inspector.
Is this by design or am I missing something?

Thank you.
Title: Re: UIButton inheritance hiding member variables.
Post by: ArenMook on July 02, 2015, 08:58:55 PM
You need to create a custom editor class to make them visible because UIButton uses one.

Why are you deriving from UIButton anyhow? I would suggest you make a separate script.