Deactivates an external display to skip rendering. For example, a secondary monitor connected to the system.
Displays have the following indices in the Display.displays array:
0
.1
to 7
.Deativating the primary display has no effect.
This method works only on HMIAndroid platforms.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { // Check the number of monitors connected. if (Display.displays.Length > 1) { // Deactivate the display 1 (second monitor connected to the system). Display.displays[1].Deactivate(); } } }