private void UpdateFileVersion() { if (!RTTIClassHierarchyDescriptor.HasSignature(Header.Generation) && BuildSettings.HasVersion(Version)) { foreach (Object asset in FetchAssets()) { if (asset.ClassID == ClassIDType.BuildSettings) { BuildSettings settings = (BuildSettings)asset; Metadata.Hierarchy.Version = Version.Parse(settings.Version); return; } } } }
private void UpdateFileVersion() { if (!SerializedFileMetadata.HasSignature(Header.Version) && BuildSettings.HasVersion(Version)) { foreach (Object asset in FetchAssets()) { if (asset.ClassID == ClassIDType.BuildSettings) { BuildSettings settings = (BuildSettings)asset; Metadata.UnityVersion = Version.Parse(settings.Version); return; } } } }