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

Pages: [1]
1
NGUI 3 Support / Re: Scaling Sliced Sprite is giving a weird result
« on: June 03, 2015, 12:39:59 PM »
I should clarify by shrinking I don't mean the normal effect you get with a sliced sprites, I mean making the borders themselves tinier so I can fit it into a smaller space on my GUI. I can do that with scaling the sprite's transform down. But this gives me the issues mentioned above.

2
NGUI 3 Support / Scaling Sliced Sprite is giving a weird result
« on: June 02, 2015, 06:37:10 PM »
I am using a 510x510 sliced sprite as the border for all different sizes of buttons and general hud borders. The issue is sometimes I cannot shrink the to the appropriate size I want without applying a transform scale to shrink the border sprite. It works overall but usually this border is the child of my button and if I want to resize the overall button, the border sprite moves with unexpecting results and generally gets itself offset from my button. Also, telling it to anchor to the above button, it rescales itself and messes up the look. I am guessing that the math being applied to the moving it is off as the local scale values are not 1 to 1 anymore. Is there any proper way to do this, or do I need multiple sized sprites for the different border sizes I need?

3
NGUI 3 Support / Scaling/resizing sprites uniformly from transform gizmo
« on: October 31, 2014, 05:03:02 PM »
Is there a hotkey, like holding shift in photoshop, when you want to resize a sprite with the transform gizmos that locks the resizing to be the same on both the height and width or if you hold Alt+Shift, it resizes uniformly from the center of the sprite?

4
NGUI 3 Support / Re: Can a sprite be used to clip another sprite?
« on: October 02, 2014, 08:06:50 PM »
Oh awesome! I'll update and check it out. Thanks!

5
NGUI 3 Support / Force UI Root to one camera
« on: October 02, 2014, 08:04:35 PM »
I am trying to create a spinning carousel menu with 4 sprite. I didn't want to deal with animating the scale and position to fake the sprites' animations to look like they were spinning into the background and foreground and instead I created a second perspective UI camera and have those elements parented under it and offset that camera so it doesn't double render my UI. I need to have a UICamera node on the camera as some buttons follow along as well. My issue is that when I reload my setup scene, that second camera is set as First Camera and my main UI Camera component is pointing to it for UICamera settings and this seems to also pull along the UI Root to that camera, which I use as an anchor for some elements. So those come along as well and my whole UI setup is broken. Is there a way to force the UI Root to my main camera and my main UI camera to always be seen as the first camera?

6
NGUI 3 Support / Can a sprite be used to clip another sprite?
« on: September 22, 2014, 12:38:13 PM »
I am trying to keep the GUI atlases as small as possible and many of the button elements on a project I am working on uses a rectangular outline shape with a fill color on the inside of it. The background color behind that outline shape changes color to show the different states of the button. I want to use a simple white 4x4 pixel square for that effect with an override color, but the outline shape has an inner and outer curves on the corners so the white square can be seen outside the outline shape. Is there anyway to have that outline shape clip out the square shape?

7
Other Packages / HUD Text generating sprites
« on: April 01, 2014, 06:00:05 AM »
Recently got HUD Text and have gotten it all setup and working correctly displaying damage and what not. I have been asked to add in sprites after a critical hit happens that say Augh! and Arg!, instead of just having text appear saying that. Is there a simple way to incorporate the sprites, so they will appear after the damage text but also transition upward and fade away like the text does?

Pages: [1]