/// <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
        }
Пример #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
        }