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

Pages: [1]
1
NGUI 3 Documentation / Re: UIScrollView
« on: July 04, 2014, 04:20:20 PM »
Now that there isn't any UIDraggablePanel anymore, I'm can't find how to implement mouse wheel scroll. I have "Scroll Wheel Factor" to 1 but nothing happens. Are the steps outlined in some tutorial I missed?

2
NGUI 3 Documentation / Re: UIScrollBar
« on: July 04, 2014, 03:51:07 PM »
Is it possible to use a UIScrollBar with just the Thumb property and no Foreground? If so, how? If not, is there any way to hide the Foreground? Even setting it at alpha 0 seems overridden.

3
Say I have tooltips, windows, or other components that will open / close during runtime (be it on hover, on click, etc.).

What are the best practices to do so?

Ideally, my objectives are:
  • The GameObject would stay Active so it can be interacted with properly without an update frame.
  • The widget would be visible (active, enabled, and alpha 1) while in the editor, but not by default while playing.
  • The colliders would stop to work when the widget is hidden (I'm guessing alpha 0 on the parent won't work for this).
  • Tweens could be used (like a tween alpha) for a smooth transition.

Is that possible? If so, how?

For sake of asking a clearer question, how would I fill, for example, this code:

  1. public class TogglableWidget : MonoBehaviour
  2. {
  3.         public void Start()
  4.         {
  5.                 // Probably hide it?
  6.         }
  7.  
  8.         public void Open()
  9.         {
  10.                 // Make it visible and functional.
  11.         }
  12.  
  13.         public void Close()
  14.         {
  15.                 // Make it invisible and eventless.
  16.         }
  17. }
  18.  

Pages: [1]