Author Topic: Draggable Panel not clipping when building to Mobile Devices  (Read 2536 times)

PhykenMedia

  • Guest
Draggable Panel not clipping when building to Mobile Devices
« on: September 26, 2012, 05:46:50 PM »
Hi!

We are having an instance where our draggable panels are not clipping properly when we build the game out to a mobile device (iOS or Android) or to the Unity Web Player. However, the clipping does work properly within the editor.

We have made sure that all shaders related to the clipping GUI is included in the Resource folder.

In the past we had issues with the Depth Shader not exporting (which caused the game to crash on devices since it was trying to reference the shader) as well. So, we think it is related to the shaders not exporting when the build is created during the export process. However, the game does not crash on this so we're not sure if the shader is actually getting exported or not.

Any help on this would be greatly appreciated! Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Draggable Panel not clipping when building to Mobile Devices
« Reply #1 on: September 26, 2012, 08:19:25 PM »
GLES 1.1 = no shader support. Make sure you're targeting GLES 2.0.

PhykenMedia

  • Guest
Re: Draggable Panel not clipping when building to Mobile Devices
« Reply #2 on: October 01, 2012, 02:24:43 PM »
Thanks for the response!

After making sure we were correctly targeting GLES 2.0 we were still having the issue until we realized that we didn't correctly place the Shaders in our "Resources" folder  :o

So for anyone else who is having problems with shaders make sure you are targeting GLES 2.0 AND make sure your shaders are placed in your "Resources" folder (unlike us!)