From 6cee58c9047bd2f8df51c23b43a651c0d2206bd4 Mon Sep 17 00:00:00 2001 From: viceca Date: Mon, 19 Jun 2023 12:51:56 +0930 Subject: [PATCH] feat: skip script symbols on other platforms On my current project we use Steam for standalone platforms, but the library is adding the scripting define on all platforms, leading to annoying git interactions --- com.rlabrecque.steamworks.net/Editor/RedistInstall.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs b/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs index 2354bb9e..262a0d55 100644 --- a/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs +++ b/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs @@ -57,6 +57,11 @@ static void CheckForOldDlls() { } static void AddDefineSymbols() { + if (EditorUserBuildSettings.selectedBuildTargetGroup != BuildTargetGroup.Standalone){ + //Shouldn't add script defines for non-standalone platforms + return; + } + string currentDefines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup); HashSet defines = new HashSet(currentDefines.Split(';')) { "STEAMWORKS_NET"