Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

PlayerSettings.XboxOne.SetGameRating

Switch to Manual
public static function SetGameRating(name: string, value: int): void;

Parameters

nameThe name of the ratings board that you are setting the rating value for.
valueThe new rating level. The meaning of the value depends on the name of the ratings board. The value corresponds to the entries the rating board's drop down menu, top most entry being 0 and each item lower in the list being 1 higher than the previous.

Description

Set the rating value that is specified in the appxmanifest.xml file.

The names and values correspond to the what you'll see in the the Player Settings > Xbox One > Publishing Settings > Game Age Ratings settings. The names are on the left, and the values are in the drop down menus.