Welcome,
Guest
. Please
login
or
register
.
June 14, 2026, 02:05:04 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
[Fixed] UITexture and UIPanel clipping
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Fixed] UITexture and UIPanel clipping (Read 5482 times)
nah0y
Sr. Member
Thank You
-Given: 1
-Receive: 2
Posts: 430
\o/
[Fixed] UITexture and UIPanel clipping
«
on:
August 08, 2012, 11:23:09 AM »
Hi,
Is there a known bug where a UITexture is not clipped using a UIPanel with clipping ?
«
Last Edit: August 08, 2012, 01:43:26 PM by nah0y
»
Logged
nah0y
Sr. Member
Thank You
-Given: 1
-Receive: 2
Posts: 430
\o/
Re: UITexture and UIPanel clipping
«
Reply #1 on:
August 08, 2012, 11:24:43 AM »
Seems like it's working if I use the Shared TransparentColored but it's Unlit/Transparent by default
Logged
nah0y
Sr. Member
Thank You
-Given: 1
-Receive: 2
Posts: 430
\o/
Re: UITexture and UIPanel clipping
«
Reply #2 on:
August 08, 2012, 11:30:10 AM »
And maybe the example in DownloadTexture is out to date now ?
Instead of all the code, we could just do :
WWW www
=
new
WWW
(
iURL
)
;
yield
return
www
;
mText
.
mainTexture
=
www
.
texture
;
mText
.
shader
=
Shader
.
Find
(
"Unlit/Transparent Colored"
)
;
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UITexture and UIPanel clipping
«
Reply #3 on:
August 08, 2012, 01:43:02 PM »
Yeah, I'll update it.
Logged
nah0y
Sr. Member
Thank You
-Given: 1
-Receive: 2
Posts: 430
\o/
Re: [Fixed] UITexture and UIPanel clipping
«
Reply #4 on:
August 08, 2012, 01:44:25 PM »
And maybe we should have a class, like a NGUIShaderManager that have direct access to the Shaders ?
It will have better performance than doing Shader.Find()
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: [Fixed] UITexture and UIPanel clipping
«
Reply #5 on:
August 08, 2012, 01:47:14 PM »
Unless Shader.Find happens in Update, it really doesn't matter.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
[Fixed] UITexture and UIPanel clipping