コード例 #1
0
ファイル: SerializedFile.cs プロジェクト: wyfleb/UtinyRipper
 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;
             }
         }
     }
 }