Welcome,
Guest
. Please
login
or
register
.
May 09, 2026, 09:32:50 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
What is the best way to make a side panel that spans the height of the screen
« previous
next »
Print
Pages: [
1
]
Author
Topic: What is the best way to make a side panel that spans the height of the screen (Read 4574 times)
laurentl
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 188
What is the best way to make a side panel that spans the height of the screen
«
on:
April 02, 2013, 02:57:43 AM »
The stripe panel is made of one tiled sprite and a few normal or split sprites and these elements are all under one panel.
1- how do I size the panel so its top and bottom sticks to the top and bottom of the screen (a sort of size anchor)?
2- how do I scale the panel in a way that doesn't deform the way the sprites look but only resize the childrens (so the stripe pattern doesn't stretch but the rectangle that holds it resizes)
https://www.youtube.com/watch?v=-BzrFWxqD9A
Logged
McDROID!
http://www.mcdroidgame.com/
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: What is the best way to make a side panel that spans the height of the screen
«
Reply #1 on:
April 02, 2013, 04:24:48 AM »
Use a UITiledSprite and put a UIStretch script directly on it.
Logged
laurentl
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 188
Re: What is the best way to make a side panel that spans the height of the screen
«
Reply #2 on:
April 02, 2013, 04:37:06 AM »
Thanks that works.
How do I also stretch the draggable panel to fit the screen's height ?
Logged
McDROID!
http://www.mcdroidgame.com/
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: What is the best way to make a side panel that spans the height of the screen
«
Reply #3 on:
April 02, 2013, 05:28:31 AM »
You have to do a custom script for that and set the clipRange on the UPanel.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
What is the best way to make a side panel that spans the height of the screen