Example #1
0
        public static SPDXLicenseList Load()
        {
            var spdxJson = Resources.Load <TextAsset>("halodi-unity-package-creator/spdx-license-list");

            if (spdxJson == null)
            {
                SPDXLicenseList empty       = new SPDXLicenseList();
                SPDXLicense     proprietary = new SPDXLicense();
                proprietary.licenseId = "proprietary";
                empty.licenses        = new SPDXLicense[] { proprietary };

                return(empty);
            }
            else
            {
                return(JsonUtility.FromJson <SPDXLicenseList>(spdxJson.text));
            }
        }
 void OnEnable()
 {
     manifest         = new PackageManifest();
     registrySelector = new RegistrySelector();
     licenseList      = SPDXLicenseList.Load().ToStringArray();
 }
 internal ExtendedPackagePropertiesUI()
 {
     licenseList      = SPDXLicenseList.Load().ToStringArray();
     registrySelector = new RegistrySelector();
 }