Author Topic: UIButton inheritance hiding member variables.  (Read 1364 times)

bDonsbach

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UIButton inheritance hiding member variables.
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButton inheritance hiding member variables.
« Reply #1 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.