Sign a UPM package using the scripting API
Pack and sign a package using the Client.Pack method in a C# script.
阅读时间1 分钟最后更新于 23 天前
Pack and sign your Unity Package Manager (UPM) package so it’s ready for distribution and compatible with Unity’s package signature ecosystem.
If you use the scripting API to process packages, you can use the method to create a signed package. For other methods, refer to Methods for signing packages.
Client.PackOne of method's parameters is the ID of the organization that owns the package.
Client.PackFollow these steps to get the organization ID and call the method:
Client.Pack-
Go to the Unity Cloud Dashboard and select the organization you want to use for signing. For information about selecting or switching organizations, refer to Switch organization.
-
Copy the Organization ID value. Refer to Identify the organization ID.
- Make sure you’re signed in to the Unity Editor as a member of the organization from the previous step.
- Call the Client.Pack method and include the organization ID that you copied in a previous step.