Author Topic: Nicki's Depth Management Tool  (Read 31914 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #30 on: November 22, 2013, 03:26:01 AM »
3.0.6 is still in the Pro repository. What email reply are you waiting on, where did you send it, and from which email address?

ikuniojp

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #31 on: November 25, 2013, 01:40:41 AM »
To support@tasharen.com
Asking about payment option.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #32 on: November 25, 2013, 03:26:36 AM »
I haven't received anything. Can you re-send?

ikuniojp

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #33 on: November 27, 2013, 06:50:19 AM »
I'm using it in 3.0.6 right now, and I'm not seeing this problem..

Are you using the new one from http://www.tasharen.com/forum/index.php?action=dlattach;topic=6166.0;attach=2804 ?

Work like a charm in 3.0.6! You're a LIFE SAVER! Genius  ;D
Thanks!

ikuniojp

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #34 on: January 05, 2014, 10:39:00 PM »
not working in 3.0.8 f5?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #35 on: January 07, 2014, 12:19:32 AM »
No it isn't right now, since some of the dependencies have changed. I'll upload a new version shortly.

lacusclyne

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #36 on: February 05, 2014, 07:31:55 AM »
This is a pretty extension, I'm waiting for new version for the lastest NGUI. 8)

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #37 on: February 06, 2014, 03:31:00 AM »
So, when I say "shortly" I evidently mean "1 month from now". Sorry, I forgot to post this when it was updated.

It still needs some code cleanup, but it works. :)

lacusclyne

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #38 on: February 06, 2014, 05:29:04 AM »
So, when I say "shortly" I evidently mean "1 month from now". Sorry, I forgot to post this when it was updated.

It still needs some code cleanup, but it works. :)

Fantastic, I can update NGUI to lastest version now, thx for ur work :)

DarkMagicCK

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #39 on: March 21, 2014, 01:38:05 AM »
If a sprite is a component of it's UIPanel's gameobject (UIWidget and UIPanel is the same object), NGUITools.GetHierarchy(depths[d][iW].cachedGameObject).Remove will cause an outofindex error. Though it's not good to put UIPanel and UISprite on same object, you can add a length check for this string.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #40 on: March 26, 2014, 05:24:59 AM »
Duly noted. I suppose it's about time to update this again, in any case. ;)

honeal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #41 on: June 11, 2014, 03:22:52 PM »
Hey Nicki, any word on an updated version of your tool?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #42 on: June 12, 2014, 03:32:58 AM »
Eek, I've been busy with other things. I'll take a stab at it this weekend. Until then there's a similar tool in NGUI in NGUI->Open->Draw Call Tool which shows some of the same information.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #43 on: June 15, 2014, 02:55:54 PM »
I've made some updates to the tool and renamed it Nicki's Draw Call Toolbox since it's largely some tools to batch-set depth values.

Here's the download link: http://nickithansen.dk/stuff/drawcalltoolbox.unitypackage

I made it with Unity 4.5 and NGUI 3.6.4, so there's no guaranteee it will work on less than that. When I get around to it, I'll push it to github or something, so it's a little easier to get updates.

If you'd like to help out, I could use a little assistance getting the colors right. There's not real upper limit to the number of colors used, other than they should be clearly distinguishable - look in the top of the UIDrawCallToolbox to see the ones used now.

I've also included a OnGUIWrapper file, which makes OnGUI setup a little more sane than GUI.Begin... GUI.End in weird places, so you can instead do clever things like this

  1. using (new GUIHorizontal())
  2.                 {
  3.                         using (new GUIVertical())
  4.                         {
  5.                                 //column of stuff      
  6.                         }
  7.                         using (new GUIVertical())
  8.                         {
  9.                                 //other column of stuff
  10.                         }
  11.                 }      
  12.  

instead of

  1.                 GUILayout.BeginHorizontal();
  2.                 GUILayout.BeginVertical();
  3.                 //column
  4.                 GUILayout.EndVertical();
  5.                 GUILayout.BeginVertical();
  6.                 //column
  7.                 GUILayout.EndVertical();
  8.                 GUILayout.EndHorizontal();

Essentially wrapping the standard OnGUI things with a nicer IDisposable structure, so you can have some sanity debugging your OnGUI code.

I'll put this link in the top post too.
« Last Edit: June 16, 2014, 04:18:32 AM by Nicki »

thienhaflash

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Nicki's Depth Management Tool
« Reply #44 on: July 22, 2014, 10:37:21 PM »
Hello everyone,

Sorry to bring this up, I've write an NGUIDepth extension that support drag and drop to adjusting the depth, very intuitive and easy, have a look and tell me if there are something you want me to improve.

  1. https://www.assetstore.unity3d.com/en/#!/content/19845

thanks a lot.