holopy3/Assets/Scripts/ActivateAllDisplays.cs

26 lines
664 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ActivateAllDisplays : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log("displays connected: " + Display.displays.Length);
// Display.displays[0] is the primary, default display and is always ON, so start at index 1.
// Check if additional displays are available and activate each.
for (int i = 1; i < Display.displays.Length; i++)
{
Display.displays[i].Activate();
}
}
// Update is called once per frame
void Update()
{
}
}