LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

Canvas.targetDisplay

Switch to Manual
public int targetDisplay;

Description

For Overlay mode, display index on which the UI canvas will appear.

This setting makes a Canvas render into the specified display. Maximum number of secondary displays (eg. monitors) supported is 8.

See Also: Display class, Camera.targetDisplay.