From 75d6fec5975d04a467ecbc55bb6b262f85a088ee Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Tue, 10 Dec 2024 13:21:59 +1100 Subject: [PATCH] Add #if..#endif checks (oops) --- CHANGELOG.md | 1 + Runtime/SerializableDictionary.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4297bdcb..09705e6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `DialogueRunner.CommandDispatcher` is now set up on first access, rather than in `Awake`. - This allows other objects to work with the command dispatcher (for example, registering new methods) in their `Awake` methods, even if their `Awake` methods run before `DialogueRunner`'s. - `YarnCommand` and `YarnFunction` commands now allow including `.` characters in their names. +- Fixed an issue in SerializableDictionary.cs that caused builds to fail. ### Changed diff --git a/Runtime/SerializableDictionary.cs b/Runtime/SerializableDictionary.cs index 3d662bdb..f2980969 100644 --- a/Runtime/SerializableDictionary.cs +++ b/Runtime/SerializableDictionary.cs @@ -262,6 +262,7 @@ protected override void SetValue(TValueStorage[] storage, int i, TValue value) } } +#if UNITY_EDITOR namespace Yarn.Unity.Editor { @@ -872,3 +873,4 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent } } } +#endif