clipped panels must have a uniform scale,or clipping won't work properly!
Unity如果还在使用UIStretch做屏幕自适应,可能会在不同屏幕分辨率出现UIScrollView显示问题,可以在包含UIScrollView的UIPanel上添加以下脚本解决:
using UnityEngine;
using System.Collections;
public class UpdatePanelScale : MonoBehaviour
{
void Start()
{
UIScrollView scrollView = transform.GetComponent<UIScrollView>();
float baseScale = 1;
if (scrollView.movement == UIScrollView.Movement.Vertical)
{
baseScale = transform.lossyScale.y;
}
else if (scrollView.movement == UISc