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

Pages: [1]
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!

2
NGUI 3 Support / SVG Importer
« on: September 25, 2015, 03:01:39 AM »
Hi all,

How compatible is NGUI with SVG importer (https://www.assetstore.unity3d.com/en/#!/content/38258)? I'm thinking on investing but before I do, as it's pricey, I'd like to get my facts straight. They say it works with unity UI which is now has a similar structure to NGUI so maybe? Any thoughts on the matter?

Thanks!

3
NGUI 3 Support / Re: How to implement LongPress?
« on: April 01, 2015, 06:52:33 AM »
For anybody else arriving here. I had to stop the coroutine with strings or the stopcoroutine wouldn't work. My knowledge of coroutines isn't deep enough to give the why's or even if it's good practice, but here you go.

  1. void OnPress (bool isPressed)
  2. {
  3.     if (isPressed) StartCoroutine("LongPress");
  4.     else StopCoroutine("LongPress");
  5. }
  6.  
  7. void OnDragOut () { StopCoroutine("LongPress"); }
  8.  
  9. IEnumerator LongPress ()
  10. {
  11.     yield return new WaitForSeconds(2f);
  12.     Debug.Log("Long press!");
  13. }
  14.  
  15.  

4
NGUI 3 Support / Ignore deselect if clicked on specific object (OnSelect)
« on: January 22, 2015, 06:53:13 AM »
Hi,

I have a scene with a 2DUI and the UICamera script attached to my main camera to handle the interaction in my game. I want to use OnSelect to select objects in 3D space and manipulate them with sliders. The problem is that when I use select an object in the space and then click on the slider, the object gets deselected.

What's the best way to go about fixing this?

5
NGUI 3 Support / Re: UI behind 3D space
« on: December 18, 2014, 04:25:04 AM »
Sorry I found it, the clear flaggs of the camera were not set to Depth only, propably I did it by accident when shifting to 3.0 or something. Thanks for the replies.

For others the fix for the UI & mousedown overlap:
http://www.tasharen.com/forum/index.php?topic=138.0

6
NGUI 3 Support / UI behind 3D space
« on: December 17, 2014, 07:09:17 AM »
Hi all,

I'm having a weird problem with my 2DUI. The 3D model in my game overlaps the UI when I get too close. The weird thing is that this problem stops if I add a 3DUI . I tried changing the depth of the seperate cameras, but if I put my main camera behind the 2DUI camera all of my UI dissapears. Also if I click on a button and there is a collider (with onmousedown) behind it, both the NGUI button and the gameObject collider get clicked. But the latter may be cause by another problem.

Also important I think the problems started after updating to NGUI 3.0, but I already once deleted all of my UI and started over with a fresh NGUI update, but the problem remains.

ps: I have the full version of NGUI.

thanks in advance

Pages: [1]