Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - boofcpw

Pages: [1] 2
1
NGUI 3 Support / Re: Panel not rendering after animation
« on: September 08, 2014, 11:35:46 PM »
Thanks for that.

2
NGUI 3 Support / Panel not rendering after animation
« on: September 08, 2014, 07:06:59 AM »
Hey,

I have some panels that are instantiated and have animations played (translation and alpha 0-1) as part of a window management system.

Everything works fine the first time, and the panel is created, and animated in. Animation out also works fine.

However when the panel is activated again and the animation plays, the panel remains invisible.

The animation plays correctly, and the panel alpha is animated to 1 and the transform is moved, but nothing is drawn.

Upon changing any property of the panel (nudging the alpha for example) , it becomes visible and everything works as expected.

There are no draw calls present, despite the pane and every widget below it being turned on.

Any help here would be great thanks :)

3
awesome. I originally didnt have the on drag code until I noticed the last bit of what you said haha. I do agree that it seems to work a bit nicer without it :)

4
Glad I could help :)

5
That's an awesome idea. I went ahead and made a simple script that does I think what you want. Just dump it on a button and it should be good to go. Feel free to do whatever you want to it (it only works with boxcolliders at the moment). The script however is still reliant on the mouse click threshold values you set on the UI camera, but now allows you to release while off the button, and still within those limits, and resizes back when you drag out of it.

6
NGUI 3 Support / Re: Atlas Maker error in Unity 4.5
« on: May 30, 2014, 12:59:20 AM »
I have been getting this issue for about 4 months now (the missing texture error, not sure about the other) , and it happens probably 40% of the time when I make an atlas. It usually just results in there not being a texture created, and the progress bar staying up, but can be fixed by generating it again.

As for a reproducible, I have had this error on a completely new project when I was trying to reproduce the reverting prefab issue. So simply importing ngui, importing two textures, then creating an atlas should be enough to reproduce it. 

7
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 24, 2014, 08:34:07 PM »
I can confirm this no longer happens in the latest NGUI update. Thanks for that!

8
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 20, 2014, 11:14:40 PM »
Hey, thanks

I have tried the fix in two project which had the issue and it seems to have not fixed either of them.

Its probably fair to blame super consistent solar radiation (or something) for this issue.

9
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 20, 2014, 06:08:20 PM »
I have created a project to help you reproduce the issue

https://www.dropbox.com/s/l9cdqancbls3hf4/NGUI_Button_Test_Two_No_NGUI.zip

The steps required are:
-open test scene
-import ngui
-in the scene hierarchy, copy the button in window
-change the new buttons sprite
-apply window
-(new button should revert)
-from this point, duplicate the window prefab in the project view
-add the new, duplicated window to the scene. It has the correct sprite (weird)

10
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 20, 2014, 05:47:09 PM »
Instead of adding the button to a prefab, try create a prefab from the buttons parent panel (as if it were a window prefab or something)

Then, try to copy the button, and change the new copied buttons sprite.

Apply the window prefab, and the second button should revert.

Basically
-Create panel
-Add button below panel
-Save panel as prefab
-Copy button
-Change new copied buttons sprite
-Apply panel prefab
boom!

I believe the act of copying the button is what breaks it. Perhaps there is some reference to the original hanging around?

Heres where it gets super weird. If you duplicate the panel prefab, after making a change and getting the sprite to revert itself on application of the panel prefab, the new panel prefab actually has the correct sprite!

11
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 20, 2014, 12:53:29 AM »
I just opened up the project I made to reproduce the issue last time, and upgraded NGUI to make sure that it fixed that issue, but that project is still having the same problem.

I created a new project, and began repeating the steps of the original bug, and found several things

1) not related, but still something that does happen pretty often. When creating an atlas, getting the error "MissingReferenceException: The object of type 'Texture2D' has been destroyed but you are still trying to access it."

2) when I first created a sprite, the sprite name was by default set as a sprite that is in a completely different project (might not be a problem/related, but I found that interesting)

3) the same bug with the applying prefab/reverting sprite.

If you follow the steps I posted previously, you should still be getting the same problem.

Thanks!

12
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 20, 2014, 12:36:29 AM »
Every time I copy a button and change the sprite, it reverts upon pressing apply. This is with an existing project. I have not had a chance today to start a fresh project and get the exact steps required to reproduce the issue, but I cant imagine it would be too different.

Just to clarify, what I am currently doing is:

Copy button (consists of sprite, button, collider, button scale)
Change new buttons sprite
Apply prefab
New button reverts to old buttons sprite.

To be clear, I definitely did upgrade NGUI properly (nuke it from orbit), and am definitely running the latest version.

Ill try get a reproducible from a fresh project when I get the chance. Its a busy week  ;)

13
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 19, 2014, 12:19:32 AM »
Hey, just updated (3.6.0) and am still occasionally getting this issue.

Does the change you did fix buttons which had the issue previously, or does it only fix newly created ones?

14
NGUI 3 Support / Re: I2 Localization for NGUI
« on: May 18, 2014, 05:46:36 PM »
This is such an awesome tool. Nice work!

15
NGUI 3 Support / Re: Sprites in prefab reverting
« on: May 16, 2014, 11:34:09 PM »
Awesome!

Pages: [1] 2