Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


appCategory

Specify the category for your application that best represents its primary functionality.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static string appCategory { get; set; }

Remarks

Refer to the Android documentation for the available category options.
Notes:
  • For new projects, this property is enabled and set to Game by default.
  • For existing projects with
    PlayerSettings.Android.androidIsGame
    set to false, this property remains disabled.

Examples

using UnityEngine;using UnityEditor;using UnityEditor.Build;public class AppCategorySample : MonoBehaviour{ [MenuItem("Build/AppCategory Sample")] public static void BuildAndroidAppCategorySample() { PlayerSettings.SetScriptingBackend(NamedBuildTarget.Android, ScriptingImplementation.IL2CPP); PlayerSettings.Android.targetArchitectures = AndroidArchitecture.ARM64; //Set App Category value to game PlayerSettings.Android.appCategory = "game"; BuildPlayerOptions options = new BuildPlayerOptions(); options.scenes = new[] { "Assets/Scenes/SampleScene.unity" }; options.locationPathName = "Build/AndroidBuild.apk"; options.target = BuildTarget.Android; options.targetGroup = BuildTargetGroup.Android; BuildPipeline.BuildPlayer(options); }}