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 - spflan

Pages: [1]
1
NGUI 3 Support / Re: UI2DSprite Issue
« on: January 22, 2014, 07:29:55 PM »
Quick update:

I didn't figure out what was causing the problem, but I ended up writing some functions to animate the sprites with TweenPosition & TweenAlpha instead of .anim files, and now the sprites are showing up & animating correctly.

I'm still curious as to what was causing the problem, but it's no longer an urgent matter to me. If I end up figuring out the root cause, I will post back here with another update.

2
NGUI 3 Support / Re: UI2DSprite Issue
« on: January 22, 2014, 10:13:36 AM »
One quick additional note. I'm using NGUI 3.0.6 f7 on Unity 4.3.3f1.

I made a copy of my project and tried upgrading it to NGUI 3.0.9, but it messed up some of my UILabel's & associated code, as well as causing strange color issues when using TweenPosition on a UISprite that has a widget color added to it. It also didn't fix this UI2DSprite issue, so I went back and read through all the changes & fixes made to NGUI since 3.0.6 f7. None of them appeared to offer any solution to my UI2DSprite problem, so I went back to my original project with NGUI 3.0.6 f7.

3
NGUI 3 Support / Re: UI2DSprite Issue
« on: January 22, 2014, 09:47:26 AM »
Okay, I uploaded a video showing the issue to youtube: http://youtu.be/10zXOWwhhIw.

In this video I start & stop the playback of a Unity scene multiple times. Each time should show the same sprites in the same order, but that's not what happens, as you are about to see.

I have 4 UI2DSprites that animate in & out through .anim files. Each UI2DSprite has a unique 2D Sprite attached to that gameobject. However, when I play back the scene, when 2 of the 2D sprites are shown at the same time, Unity will "randomly" use the same 2D Sprite for both of the sprites. I put "randomly" in quotes because I can't believe it to be truly random, which is why I am posting here for some help.

Cheers

4
NGUI 3 Support / Re: UI2DSprite Issue
« on: January 22, 2014, 09:10:35 AM »
That's what I'm trying to figure out. The sprite itself doesn't get changed. The sprite's gameObject moves in & out of the camera view using a .anim file animation. I'll record a quick video and post it shortly.

5
NGUI 3 Support / UI2DSprite Issue
« on: January 21, 2014, 08:21:36 PM »
I'm having a problem that occurs intermitently. Sometimes a UI2DSprite loads the wrong sprite. This seems to happen randomly, so I'm having difficulty pinning down the problem. I've attached a screenshot that shows my scene running. There are 2 UI2DSprites in the scene. I have one of them selected by the Inspector, which shows that it is displaying the wrong sprite. Any ideas what could be causing the problem?

6
I think I figured out the cause of the problem. The parent UIPanel was set to layer "Backgrounds". Of the two children UIPanels ("Content" & "Images"), one was set to layer "Default" and the other was set to layer "Backgrounds". I changed them to all be on the same layer, and it is working for the moment.

Reading through the documentation and other posts on the forum helped me notice my error, specifically this post: http://www.tasharen.com/forum/index.php?topic=882.0.

7
NGUI 3 Support / UIPanel & UI2DSprite - Sprite not showing in game view
« on: January 20, 2014, 01:21:47 PM »
I'm still a little new to NGUI, but I am stumped at the moment. I have 2 UIPanels that are children of another UIPanel. Both of these children UIPanels have the same alpha clipping mask enabled in their settings, as well as UI2DSprites within them. However, even though I can view all of these sprites in the Scene view, only one panel shows it's sprites in the game view. Any thoughts as to why this is?

Here is the hierarchy:
UIPanel (Reduce Operating Costs Panel)
     UIPanel with alpha clipping mask (Content)
          UI2DSprite (SpriteTest) - viewable only in scene window, but not game window
     UIPanel with alpha clipping mask (Images)
          UI2DSprite (image 1) - viewable in both scene & game window
          UI2DSprite (image 2) - viewable in both scene & game window


My apologies if my question is not very clearly worded. I recorded a quick little screen capture and posted it on youtube to further aid in describing my issue. Link to video on YouTube: http://youtu.be/zb4klMQOTcs

Pages: [1]