Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Fix the PrefabPreprocessor (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Brynes authored Jul 24, 2020
1 parent 91f87ed commit 85fcb49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<EntityRepresentationMapping>)
.SelectMany(mapping => mapping.EntityRepresentationResolvers)
Expand Down

0 comments on commit 85fcb49

Please sign in to comment.