Example #1
0
        public static Hash128 GetSubSceneArtifactHash(Hash128 sceneGUID, Hash128 buildConfigurationGUID, UnityEditor.Experimental.AssetDatabaseExperimental.ImportSyncMode syncMode)
        {
            var guid = ComputeBuildConfigurationGUID(sceneGUID, buildConfigurationGUID);

            if (s_BuildConfigurationCreated.Add(guid))
            {
                CreateBuildConfigurationSceneFile(sceneGUID, buildConfigurationGUID);
            }
            if (!s_HashToString.TryGetValue(guid, out var guidString))
            {
                guidString = s_HashToString[guid] = guid.ToString();
            }
            var res = UnityEditor.Experimental.AssetDatabaseExperimental.GetArtifactHash(guidString, SubSceneImporterType, syncMode);

            return(res);
        }
        public static Hash128 GetSubSceneArtifactHash(Hash128 sceneGUID, Hash128 buildSettingGUID, UnityEditor.Experimental.AssetDatabaseExperimental.ImportSyncMode syncMode)
        {
            var guid = CreateBuildSettingSceneFile(sceneGUID, buildSettingGUID);
            var res  = UnityEditor.Experimental.AssetDatabaseExperimental.GetArtifactHash(guid.ToString(), SubSceneImporterType, syncMode);

            return(res);
        }
Example #3
0
        public static Hash128 GetSubSceneArtifactHash(Hash128 sceneGUID, Hash128 buildConfigurationGUID, UnityEditor.Experimental.AssetDatabaseExperimental.ImportSyncMode syncMode)
        {
            var guid = SceneWithBuildConfigurationGUIDs.EnsureExistsFor(sceneGUID, buildConfigurationGUID);

            if (!s_HashToString.TryGetValue(guid, out var guidString))
            {
                guidString = s_HashToString[guid] = guid.ToString();
            }
            return(UnityEditor.Experimental.AssetDatabaseExperimental.GetArtifactHash(guidString, SubSceneImporterType, syncMode));
        }