From 522571737801fb4fd17c44d2fd3fb2517b232c40 Mon Sep 17 00:00:00 2001 From: Srichakradhar Reddy Nagireddy Date: Mon, 18 Aug 2025 15:03:12 -0700 Subject: [PATCH] Enable including [samples](https://docs.unity3d.com/6000.1/Documentation/Manual/cus-samples.html) in Unity Package Manager (UPM) packages. --- source/ExportUnityPackage/export_unity_package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ExportUnityPackage/export_unity_package.py b/source/ExportUnityPackage/export_unity_package.py index b8f16b5a..c0a2fe48 100755 --- a/source/ExportUnityPackage/export_unity_package.py +++ b/source/ExportUnityPackage/export_unity_package.py @@ -2476,10 +2476,12 @@ def write_upm_manifest(self, output_dir): self.common_package_display_name) package_manifest["keywords"] = keywords - # Add minimum Unity version + # Add minimum Unity version, samples and dependencies. if self.upm_manifest: safe_dict_set_value(package_manifest, "unity", safe_dict_get_value(self.upm_manifest, "unity")) + safe_dict_set_value(package_manifest, "samples", + safe_dict_get_value(self.upm_manifest, "samples")) dependencies = safe_dict_get_value( self.upm_manifest, "dependencies", default_value={}) else: