登录页一些特效,路书列表详情框架

This commit is contained in:
Caiyanpeng committed 2021-04-01 11:01:05 +08:00
1 parent 326b74bd03
commit 996f924719
50 files changed
+19916 -6804

No files matched your search

@@ -26,8 +26,15 @@ public class ImageWithRoundedCorners : MonoBehaviour {
{
var rect = ((RectTransform)transform).rect;
material.SetVector(Props, new Vector4(rect.width, rect.height, radius*2, 0));
gameObject.GetComponent<Image>().material = material;
gameObject.GetComponent<Image>().sprite = null;
if (gameObject.GetComponent<Image>() != null)
{
gameObject.GetComponent<Image>().material = material;
gameObject.GetComponent<Image>().sprite = null;
}
else if (gameObject.GetComponent<RawImage>()!=null)
{
gameObject.GetComponent<RawImage>().material = material;
}
}
else
{