gustavopsantos / Reflex

Minimal dependency injection framework for Unity
MIT License
730 stars 51 forks source link

[Editor] Compilation warnings in Unity 6 Preview #62

Closed anonymous2585 closed 3 weeks ago

anonymous2585 commented 2 months ago

Describe the bug In edtior, I got two warnings due to deprecated methods in Unity 6 Preview (6000.0.14f1).

Packages\com.gustavopsantos.reflex\Editor\DebuggingWindow\UnityScriptingDefineSymbols.cs(29,36): warning CS0618: 'PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup)' is obsolete: 'Use GetScriptingDefineSymbols(NamedBuildTarget buildTarget) instead'
Packages\com.gustavopsantos.reflex\Editor\DebuggingWindow\UnityScriptingDefineSymbols.cs(34,9): warning CS0618: 'PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup, string)' is obsolete: 'Use SetScriptingDefineSymbols(NamedBuildTarget buildTarget, string defines) instead'

To Reproduce Steps to reproduce the behavior:

  1. Follow the Greetings tutorial
  2. Close the project, delete the "Library" folder
  3. Open the project
  4. See the two warnings

Expected behavior No warnings.

Desktop: