Unity3d UGUI 自适应屏幕 代码修改Left,Top,Right,Bottom属性值

经过RectTransform 的属性offsetMin,offsetMax来实现;orm offsetMin   是vector2(left,bottom); form offsetMax 是vector2(right,top);//若是Anchors max=(1,1),right,top要传入负数;top 例如:new private void AdaptUI() {         if
相关文章
相关标签/搜索