Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: nah0y on August 08, 2012, 11:23:09 AM
Title:
[Fixed] UITexture and UIPanel clipping
Post by:
nah0y
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 ?
Title:
Re: UITexture and UIPanel clipping
Post by:
nah0y
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
Title:
Re: UITexture and UIPanel clipping
Post by:
nah0y
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"
)
;
Title:
Re: UITexture and UIPanel clipping
Post by:
ArenMook
on
August 08, 2012, 01:43:02 PM
Yeah, I'll update it.
Title:
Re: [Fixed] UITexture and UIPanel clipping
Post by:
nah0y
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()
Title:
Re: [Fixed] UITexture and UIPanel clipping
Post by:
ArenMook
on
August 08, 2012, 01:47:14 PM
Unless Shader.Find happens in Update, it really doesn't matter.