Version: 2017.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayerSettings.WSAInputSource.IndependentInputSource

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

Create Independent Input Source and receive input from it.

This option requires XAML application type. Using this method pointer input on SwapChainPanel is received in Unity thread rather than UI thread and touches, clicks or mouse movement outside SwapChainPanel is unavailable to Unity. Keyboard input is always taken from CoreWindow and is always available to Unity. You may want this input method when Unity does not occupy the whole window and there are other XAML elements besides it. In such case input to Unity and other elements is separated and one does not see the other. (More info http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.swapchainpanel.createcoreindependentinputsource).