/// <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 }
/// <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 }