Welcome,
Guest
. Please
login
or
register
.
May 17, 2025, 11:21:17 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIStretch problems after migrating to 3.0.2
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIStretch problems after migrating to 3.0.2 (Read 2614 times)
Markov
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 27
UIStretch problems after migrating to 3.0.2
«
on:
October 11, 2013, 03:00:21 PM »
http://www.youtube.com/watch?v=ECFzVpIYXwM&feature=youtu.be
UIStretch doesn't work now. I tried to put it on the same GameObject with widget and on a parent of widget.
If I put UIStretch on parent - it multiplies scale of transform on every OnValidate event(i guess).
If I put it on the same object it doesn't do anything.
«
Last Edit: October 12, 2013, 04:24:12 AM by Markov
»
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIStretch problems after migrating to 3.0.2
«
Reply #1 on:
October 12, 2013, 09:12:41 AM »
Remove the "container" property. Why did you set it? You set the parent's container to be the child. Uh.
Keep the stretch on the sprite. Don't put it on the "BG" object.
Logged
Markov
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 27
Re: UIStretch problems after migrating to 3.0.2
«
Reply #2 on:
October 18, 2013, 04:46:13 AM »
Oooops
So, I have new question. UIStretch doesn't work correctly if the camera is in perspective mode.
It works fine if my background object right in the camera position, but if I move bg sprite position back - it won't cover all background space.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIStretch problems after migrating to 3.0.2
«
Reply #3 on:
October 18, 2013, 05:23:57 PM »
It's not meant to. Orthographic cameras have a fixed width and height. Perspective cameras have a varying width and height based on the depth.
Logged
Markov
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 27
Re: UIStretch problems after migrating to 3.0.2
«
Reply #4 on:
October 18, 2013, 06:56:42 PM »
So is there any way to use UIStretch in perspective camera?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIStretch problems after migrating to 3.0.2
«
Reply #5 on:
October 18, 2013, 06:59:27 PM »
You can't use a perspective camera's bounds, no.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIStretch problems after migrating to 3.0.2