From f5435d44c591c9eb3fa821cfb1e85a79e360952b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Matkowski?= Date: Fri, 30 Aug 2024 21:16:22 +0200 Subject: [PATCH] Fix runtime compilation error caused by the SerializedDirectory --- Assets/Editor Toolbox/CHANGELOG.md | 5 +++++ .../Runtime/Serialization/SerializedDirectory.cs | 3 ++- Assets/Editor Toolbox/package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Assets/Editor Toolbox/CHANGELOG.md b/Assets/Editor Toolbox/CHANGELOG.md index 59b3773d..8b1b728b 100644 --- a/Assets/Editor Toolbox/CHANGELOG.md +++ b/Assets/Editor Toolbox/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.13.1 [30.08.2024] + +### Changed: +- Fix runtime compilation error caused by the SerializedDirectory + ## 0.13.0 [28.08.2024] ### Added: diff --git a/Assets/Editor Toolbox/Runtime/Serialization/SerializedDirectory.cs b/Assets/Editor Toolbox/Runtime/Serialization/SerializedDirectory.cs index a8a6ce89..ecd11ece 100644 --- a/Assets/Editor Toolbox/Runtime/Serialization/SerializedDirectory.cs +++ b/Assets/Editor Toolbox/Runtime/Serialization/SerializedDirectory.cs @@ -16,6 +16,7 @@ public class SerializedDirectory : ISerializationCallbackReceiver [SerializeField, Disable] private string path; +#if UNITY_EDITOR internal static bool IsAssetValid(DefaultAsset asset, out string path) { path = asset != null ? AssetDatabase.GetAssetPath(asset) : null; @@ -33,7 +34,7 @@ internal static bool IsAssetValid(DefaultAsset asset, out string path) return false; } - +#endif void ISerializationCallbackReceiver.OnAfterDeserialize() { } diff --git a/Assets/Editor Toolbox/package.json b/Assets/Editor Toolbox/package.json index 3eb4de61..a098956a 100644 --- a/Assets/Editor Toolbox/package.json +++ b/Assets/Editor Toolbox/package.json @@ -1,7 +1,7 @@ { "name": "com.browar.editor-toolbox", "displayName": "Editor Toolbox", - "version": "0.13.0", + "version": "0.13.1", "unity": "2018.1", "description": "Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.", "keywords": [