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

Pages: [1]
NGUI 3 Support / Using nGui with Playmaker
« on: February 28, 2017, 05:29:51 PM »
Hi, I would love to use nGui together with Playmaker (to create popups and handle button clicks). The UI Tweens for example are an amazing way to show and hide popups, and it would be wonderful to handle that with Playmaker.

But, how can I make this work? I see some assets in the Asset Store (like `Ngui ACTION+ for PlayMake`r) but they aren't updated for the past few years and there seems to be no official release. Is there no official bridge? What would be the best way to make use of these frameworks? I mean, nGui and Playmaker are probably one of the most used assets. There should be an easy way to bridge the gap between them?

NGUI 3 Support / Re: Fade in a modal
« on: December 31, 2016, 11:26:02 AM »
1. It's actually often better to have multiple panels. Moving panels around is much more efficient than moving widgets around. I always recommend the "one panel per window" rule.

Thank you, but isn't each panel an extra draw call? Shouldn't I minimize the amount of panels when developing for mobile phones?

NGUI 3 Support / Prevent clicking/dragging through
« on: December 30, 2016, 02:15:53 PM »
Hi, I just started learning NGUI. I have a top down strategy game where players can drag the landscape view. On top I have a 2D UI. The main navigation has some buttons, and when I click them a modal is opened. But players can still click and drag through the modal. How can I prevent that? How can I set the sprite so that it prevents clicking and dragging through? I tried some other things I read on this forum, like setting a box collider on the sprite, but it's not working. Could someone help me out?

Something about my setup (I don't know exactly what is relevant to know for this issue):

* UI Root (parent and children have 'UI' layer)
** Camera (Culling Mask: UI, Depth: 1)
** Panel
*** MainUI Widget
**** Nav button ranking
**** Nav button settings
**** Nav button quests
*** SettingsUI Widget
**** Background sprite
***** BG Stripes

NGUI 3 Support / Fade in a modal
« on: December 29, 2016, 05:54:34 PM »
I just started learning NGUI. Now I have the following Hierarchy:

- UI Root
|-- Camera
|-- Panel
|-- |-- Main
|-- |-- |-- Button Settings
|-- |-- |-- Button Ranking
|-- |-- Settings MODAL
|-- |-- |-- Control - Background
|-- |-- |-- Control - Simple Text
|-- |-- Ranking MODAL
|-- |-- |-- Control - Background
|-- |-- |-- Control - Simple Text

I have three questions about this:

  • Is this the right way to set up my hierarchy? I want to stay with one panel to keep the performance on its best
  • The Button Settings should fade in the Settings Modal and the Button Ranking should fade in the Ranking Modal. What is the best way to set this up? I can't figure out what would be the best way. The background should be faded in, the other controls (like the text) shoudl have another cool effect.
  • The background is a black overlay on top of the game. As mentioned, aach time a modal is opened, this background should fade in. But, there could be a lot more modals (8 or so). Should I duplicate the background for each of this modal. Or can I have one instance of the background?

Pages: [1]