1
NGUI 3 Support / Re: NGUI in front of Vectrosity
« on: November 26, 2015, 08:48:25 AM »
For possible others with this same issue:
Not sure for the do's and don'ts but this worked for me:
I set the canvas component for the vectrocity elements to screenspaceCamera and sorting order to -1 through code. Make the canvas use Ngui's camera and ajust Ngui's culling mask to use UI. For some reason the canvas jumps back to RenderMode overlay, this is why you have to set it through code. Then include the canvas adjustments in a method when u first use the vectrocity elements after startup. Also whith this method you need to keep screen resizes in mind.
EDIT: Also remember to set plane distance to 0 and here is a link to some code for to help with resolution/orientation changes:
http://forum.unity3d.com/threads/device-screen-rotation-event.118638/
cheers!
Not sure for the do's and don'ts but this worked for me:
I set the canvas component for the vectrocity elements to screenspaceCamera and sorting order to -1 through code. Make the canvas use Ngui's camera and ajust Ngui's culling mask to use UI. For some reason the canvas jumps back to RenderMode overlay, this is why you have to set it through code. Then include the canvas adjustments in a method when u first use the vectrocity elements after startup. Also whith this method you need to keep screen resizes in mind.
EDIT: Also remember to set plane distance to 0 and here is a link to some code for to help with resolution/orientation changes:
http://forum.unity3d.com/threads/device-screen-rotation-event.118638/
cheers!
