Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

PlayerSettings.XboxOne.SetCapability

Switch to Manual
public static function SetCapability(capability: string, value: bool): void;

Parameters

capability The name of the capability to set.
value Whether or not to enable the capability.

Description

Mark a specific capability as enabled or enabled in the appxmanifest.xml file. Please see the XDK whitepaper titled "Xbox One Submission Validator" for valid capability names.