Naming your package
There are two names for a package: the official name you register the package with; and the user-facing display name that users can see in the Editor.
The display name should be brief but provide some indication of what the package contains. Otherwise, the Unity Package Manager imposes no restrictions on the display name.
The official name must conform to the Unity Package Manager naming convention, which uses reverse domain name notation. The name must:
- Start with com.<company-name>. For example, one of the official Unity packages is “com.unity.timeline”.
- Be no more than 50 characters if you want it to be visible in the UI(User Interface) Allows a user to interact with your application. More info
See in Glossary. If the package name does not need to appear in the UI, the Unity Package Manager imposes a limit of 214 characters or less.
- Contain only lowercase letters, digits, hyphens(-), underscores (_), and periods (.)
- To indicate nested namespaces, suffix the namespace with an additional period. For example, “com.unity.2d.animation” and “com.unity.2d.ik”.
对文档有任何疑问,请移步至
开发者社区提问,我们将尽快为您解答