From 929dae90e0058567d7a05492ad44428119a4dd62 Mon Sep 17 00:00:00 2001 From: Neil Sarkar Date: Tue, 13 Oct 2020 08:33:23 -0700 Subject: [PATCH] Provide a PrefabApplier stub in runtime environments to avoid nullref in builds --- Runtime/PrefabApplier.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Runtime/PrefabApplier.cs b/Runtime/PrefabApplier.cs index 81c554e..956d020 100644 --- a/Runtime/PrefabApplier.cs +++ b/Runtime/PrefabApplier.cs @@ -63,4 +63,9 @@ public void UpdatePrefabs() { } } } +#else +using UnityEngine; +namespace VioletUI { + public class PrefabApplier : MonoBehaviour {} +} #endif \ No newline at end of file