12345678910111213141516171819202122232425 |
- using SC.XR.Unity;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TestGrid : MonoBehaviour
- {
-
- void Start()
- {
- var scgrid = transform.gameObject.AddComponent<SCGridLayoutGroup>();
- scgrid.IsIgnoreInactiveObj = true;
- scgrid.SpaceX = 2f;
- scgrid.LayoutType = LayoutTypes.Vertical;
- scgrid.Rows = 1;
- scgrid.RefreshInfo();
-
- }
-
- void Update()
- {
- }
- }
|