private void Start()
    {
        GlobalScript globals = GameObject.Find("Globals").GetComponent <GlobalScript>();

        resolution_preset = globals.resolution_preset;
        range_preset      = globals.range_preset;
        isFilteringEnable = globals.isFilteringEnable;
        isTextured        = globals.isTextured;
        manager           = GameObject.FindObjectOfType(typeof(ZEDManager)) as ZEDManager;
        spatialMapping    = new ZEDSpatialMapping(transform, sl.ZEDCamera.GetInstance(), manager);
    }
Example #2
0
 private void Start()
 {
     manager        = FindObjectOfType(typeof(ZEDManager)) as ZEDManager;
     spatialMapping = new ZEDSpatialMapping(transform, ZEDCamera.GetInstance(), manager);
 }
 /// <summary>
 /// Fills the manager reference and instantiates ZEDSpatialMapping.
 /// </summary>
 private void Start()
 {
     manager        = ZEDManager.Instance;
     spatialMapping = new ZEDSpatialMapping(transform, sl.ZEDCamera.GetInstance(), manager);
 }