/// <summary>
        /// Gets the input field used in the demo.
        /// </summary>
        /// <returns>The input field used in the demo.</returns>
        public InputField GetDemoInputField()
        {
#if UNITY_WSA
            return(HoloLensUXTree.GetComponentInChildren <InputField>(true));
#else
            return(MobileAndEditorUXTree.GetComponentInChildren <InputField>(true));
#endif
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the buttons used in the demo.
        /// </summary>
        /// <returns>The buttons used in the demo.</returns>
        public Button[] GetDemoButtons()
        {
#if UNITY_WSA
            return(HoloLensUXTree.GetComponentsInChildren <Button>(true));
#else
            return(MobileAndEditorUXTree.GetComponentsInChildren <Button>(true));
#endif
        }
        /// <summary>
        /// Gets the input field used in the demo.
        /// </summary>
        /// <returns>The input field used in the demo.  Returns null on HoloLens</returns>
        public InputField GetDemoInputField()
        {
#if UNITY_WSA
            Debug.LogError("Demo doesn't expect a button for HoloLens");
            return(null);
#else
            return(MobileAndEditorUXTree.GetComponentInChildren <InputField>(true));
#endif
        }
        /// <summary>
        /// Gets the buttons used in the demo.
        /// </summary>
        /// <returns>The buttons used in the demo.  Returns null on HoloLens</returns>
        public Button[] GetDemoButtons()
        {
#if UNITY_WSA
            Debug.LogError("Demo doesn't expect a button for HoloLens");
            return(null);
#else
            return(MobileAndEditorUXTree.GetComponentsInChildren <Button>(true));
#endif
        }