Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,9 @@ private static void GetEveryShaderFeatureAndUpdateURPAssets(List<ShaderFeatures>
// Update the Prefiltering settings for this URP asset
urpAsset.UpdateShaderKeywordPrefiltering(ref spd);

// Mark the asset dirty so it can be serialized once the build is finished
// Save the asset before build
EditorUtility.SetDirty(urpAsset);
AssetDatabase.SaveAssetIfDirty(urpAsset);
}
}
}
Expand Down Expand Up @@ -436,8 +437,9 @@ ref ssaoRendererFeatures
// Update the Prefiltering settings for this URP asset
urpAsset.UpdateShaderKeywordPrefiltering(ref spd);

// Mark the asset dirty so it can be serialized once the build is finished
// Save the asset before build
EditorUtility.SetDirty(urpAsset);
AssetDatabase.SaveAssetIfDirty(urpAsset);

// Clean up
ssaoRendererFeatures.Clear();
Expand Down