Skip to content

Version 1.5.1 removes all scripting define symbols and it only leaves ANDROID_PERFORMANCE_TUNER_UTILITIES when applied #27

@rpuigc

Description

@rpuigc

we`ve some scripting define symbols in Unity, when we imported the plugin, it overrides the scripting define symbols list, leaving only the one that the plugin needs.

i`ve corrected this issue by changing (Assets/AndroidPerformanceTuner/Editor/Scripts/Initializer.cs at line 168):

PlayerSettings.SetScriptingDefineSymbolsForGroup( EditorUserBuildSettings.selectedBuildTargetGroup, Paths.utilitiesScriptingSymbol);

For:

`string definesString = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
System.Collections.Generic.List allDefines = new List(definesString.Split(';'));

        if (!allDefines.Contains(Paths.utilitiesScriptingSymbol))
            allDefines.Add(Paths.utilitiesScriptingSymbol);

        PlayerSettings.SetScriptingDefineSymbolsForGroup(
            EditorUserBuildSettings.selectedBuildTargetGroup,
            string.Join(";", allDefines.ToArray()));`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions