Browse Source

修复gridlayout

胡佳骏 1 year ago
parent
commit
001220df61

+ 2 - 2
Samples~/SDK/Modules/Module_GridCollection/Scripts/SCGridLayoutGroup.cs

@@ -80,7 +80,7 @@ namespace SC.XR.Unity
             get { return columns; }
             set
             {
-                if (LayoutType == LayoutTypes.Vertical)
+                if (LayoutType == LayoutTypes.Horizontal) 
                 {
                     return;
                 }
@@ -97,7 +97,7 @@ namespace SC.XR.Unity
             get { return rows; }
             set
             {
-                if (LayoutType == LayoutTypes.Horizontal) 
+                if (LayoutType == LayoutTypes.Vertical) 
                 {
                     return;
                 }