Author Topic: My Custom variable not visible in inspector  (Read 4026 times)

realblues

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
My Custom variable not visible in inspector
« on: May 19, 2012, 10:28:00 AM »
I added following code in UiSpriteAnimation.cs

  1. public enum LoopType
  2. {
  3.     Once,
  4.     Loop
  5. }
  6. public LoopType loopType;
  7.  

but loopType not visible in the inspector.  what should I do?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: My Custom variable not visible in inspector
« Reply #1 on: May 19, 2012, 11:35:39 AM »
You need to modify UISpriteAnimationInspector as well.

realblues

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: My Custom variable not visible in inspector
« Reply #2 on: May 19, 2012, 09:37:55 PM »
It doesn't looks easy, but Thaks  :)