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(); 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() { } }