Version: 2023.2
Language : English
Android application entry points
Activity requirements and compatibility

The Activity application entry point

Activity was originally the only application entry point that Unity supported and because of this it’s very stable in the majority of scenarios.

This application entry point is appropriate to use in the following scenarios:

  • Your project uses plug-insA set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
    See in Glossary
    that must run on a Java thread. For more information, refer to Plug-in compatibility.
  • You are upgrading an old project that already uses the Activity application entry point.

If the above scenarios don’t apply to your project, the GameActivity application entry point is a more appropriate application entry point. Among other benefits, Unity’s implementation of GameActivity gives you more control over the interaction between Android and your application. For more information, refer to GameActivity application entry point.

Topic Description
Activity requirements and compatibility Understand the system requirements and feature compatibility of the Activity application entry point.
Extend the default Unity activity Override basic interactions between the Android operating system and the Unity Android application.

Additional resources

Android application entry points
Activity requirements and compatibility
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961