Author Topic: Problems with a Clipped Window  (Read 5070 times)

Darkness

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 90
    • View Profile
Problems with a Clipped Window
« on: April 13, 2015, 06:12:03 PM »
Hello, it's been a while, AM.  Hope everything is going well.

I've been having problems with creating a clipped window.  I want to have a map (my own texture) that can be moved around either by keyboard or mouse, but the window won't show the contents at all.  I made sure they were all on the right layer and I added the UIScrollView to the main window and added the clipped plane.  However, none of the items show.  No matter what I put into that box, it won't show.  I tried with a simple sprite and it won't show.  Is there something special that needs to be done for the clipped area to show?

Thanks in advance.

*EDIT:* After some testing, I think the problem has to do with panels.  I moved the panel from -5 to 0 and it ended up in front (though still not clipping, but at least I could see everything in front).  If I moved the panel to -1, then it would end up behind everything.  I don't mind it in front of everything if the panel would just clip like it's supposed to.  I guess it's progress, but at the end of the day it still won't clip.
« Last Edit: April 13, 2015, 06:54:33 PM by Darkness »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problems with a Clipped Window
« Reply #1 on: April 16, 2015, 05:23:59 AM »
Does your own texture use a proper shader? You need to use Unlit/Transparent or another NGUI shader.

Darkness

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: Problems with a Clipped Window
« Reply #2 on: April 16, 2015, 10:44:20 AM »
Thanks for the suggestion.  I guess the issue was depth.  I checked the shader and didn't see any change, but when I went back and started messing around with depth, I finally got it to show. Not sure what was going on there, but I got it working.  Thanks for the info.