Download data/Assets/Scripts/Common/MultiDisplayActivation.cs from introvoyz042/CRESSim: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Common/MultiDisplayActivation.cs
- Command line
-
hf download hf://datasets/introvoyz042/CRESSim/data/Assets/Scripts/Common/MultiDisplayActivation.cs
-
curl -L -o MultiDisplayActivation.cs https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Common/MultiDisplayActivation.cs
481 Bytes
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class MultiDisplayActivation : MonoBehaviour | |
| { | |
| // Start is called before the first frame update | |
| void Start() | |
| { | |
| Debug.Log ("displays connected: " + Display.displays.Length); | |
| for (int i = 0; i < Display.displays.Length; i++) | |
| { | |
| Display.displays[i].Activate(); | |
| } | |
| } | |
| // Update is called once per frame | |
| void Update() | |
| { | |
| } | |
| } | |