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