From b30b7e2d8355e0f60212dd44339f736c57f93d89 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Fri, 24 Jul 2020 12:05:57 +0100 Subject: [PATCH 1/2] fix the prefab preprocessor --- .../Representation/Editor/PrefabPreprocessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/unity/Packages/io.improbable.gdk.core/Representation/Editor/PrefabPreprocessor.cs b/workers/unity/Packages/io.improbable.gdk.core/Representation/Editor/PrefabPreprocessor.cs index 1e486850d7..7d7201d3ce 100644 --- a/workers/unity/Packages/io.improbable.gdk.core/Representation/Editor/PrefabPreprocessor.cs +++ b/workers/unity/Packages/io.improbable.gdk.core/Representation/Editor/PrefabPreprocessor.cs @@ -44,7 +44,7 @@ private static void OnPlaymodeStateChanged(PlayModeStateChange playModeStateChan private static void PreprocessPrefabs() { - var resolvers = AssetDatabase.FindAssets("t:EntityLinkerDatabase") + var resolvers = AssetDatabase.FindAssets($"t:{typeof(EntityRepresentationMapping)}") .Select(AssetDatabase.GUIDToAssetPath) .Select(AssetDatabase.LoadAssetAtPath) .SelectMany(mapping => mapping.EntityRepresentationResolvers) From c19dda759e3c59a0ca99198a345c8124190e0aa1 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Fri, 24 Jul 2020 12:10:37 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad9feada21..26f4159de3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,17 +11,15 @@ - Added support for multiple annotations in Code Writer API. [#1427](https://github.com/spatialos/gdk-for-unity/pull/1427) - Prevent building workers with Unity Editor compile errors. [#1425](https://github.com/spatialos/gdk-for-unity/pull/1425) -### Fixed - -- Fixed a bug where the entity list in the Worker Inspector does not refresh when switching to a worker with no entities checked out [#1432](https://github.com/spatialos/gdk-for-unity/pull/1432) - ### Changed - Upgrade to Worker SDK v14.7.0. [#1434](https://github.com/spatialos/gdk-for-unity/pull/1434) ### Fixed +- Fixed a bug where the entity list in the Worker Inspector does not refresh when switching to a worker with no entities checked out [#1432](https://github.com/spatialos/gdk-for-unity/pull/1432) - Build targets which are marked as 'Build', but not 'Required' are now properly skipped if build support is not installed. [#1435](https://github.com/spatialos/gdk-for-unity/pull/1435) +- The `PrefabPreprocessor` will now correctly find and preprocess your prefabs. [#1438](https://github.com/spatialos/gdk-for-unity/pull/1438) ## `0.3.8` - 2020-07-20