Author Topic: 2 CustomEditor for Transform?  (Read 3008 times)

badawe

  • Jr. Member
  • **
  • Thank You
  • -Given: 8
  • -Receive: 7
  • Posts: 70
    • View Profile
2 CustomEditor for Transform?
« on: March 21, 2013, 02:00:21 PM »
Hi there!

This questions is not about the NGUI itself, but about the NGUI Transform window!
As you guys know, the NGUI have a custom inspector for transform, and it's amazing!

And we make one plugin that extends transform too, but the problem is, the NGUI aways override our function, we don't know exactly what we can do to make this things work together??

Do you guys have a clue?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: 2 CustomEditor for Transform?
« Reply #1 on: March 21, 2013, 06:11:01 PM »
I'm not sure you can get two plugins to both override and play nice together easily.

You could copy the contents of the NGUI one into your own and work it into each other that way and comment out the existing NGUI version.

NGUITransformInspector.cs holds all the NGUI overriding.

badawe

  • Jr. Member
  • **
  • Thank You
  • -Given: 8
  • -Receive: 7
  • Posts: 70
    • View Profile
Re: 2 CustomEditor for Transform?
« Reply #2 on: March 21, 2013, 07:12:07 PM »
I'm not sure you can get two plugins to both override and play nice together easily.

You could copy the contents of the NGUI one into your own and work it into each other that way and comment out the existing NGUI version.

NGUITransformInspector.cs holds all the NGUI overriding.


I'm afraid of having to do that .
I really want they both play nice together, but looks like i'll must copy the NGUITransformInspector!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: 2 CustomEditor for Transform?
« Reply #3 on: March 22, 2013, 06:31:08 PM »
That said, I'm not expert on Unity Editor scripts, so I could be wrong. That's just what I would do. :)