Skip to content

Commit

Permalink
Added full namespace to "Obsolete" usages to avoid error using Unity 6
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusAlgoryx authored Nov 12, 2024
1 parent 8e24e1f commit 55b8356
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Editor/AGXUnityEditor/BuildTools/DefineSymbols.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static void SetSymbols( List<string> symbols, NamedBuildTarget target )

#region BuildTargetGroup API
#if UNITY_6000_0_OR_NEWER
[Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
[System.Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
#endif
public static void Add( string symbol, BuildTargetGroup group )
{
Expand All @@ -100,7 +100,7 @@ public static void Add( string symbol, BuildTargetGroup group )
}

#if UNITY_6000_0_OR_NEWER
[Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
[System.Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
#endif
public static void Remove( string symbol, BuildTargetGroup group )
{
Expand All @@ -113,23 +113,23 @@ public static void Remove( string symbol, BuildTargetGroup group )
}

#if UNITY_6000_0_OR_NEWER
[Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
[System.Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
#endif
public static bool Contains( string symbol, BuildTargetGroup group )
{
return PlayerSettings.GetScriptingDefineSymbolsForGroup( group ).Split( ';' ).Any( defineSymbol => defineSymbol == symbol );
}

#if UNITY_6000_0_OR_NEWER
[Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
[System.Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
#endif
private static List<string> GetSymbolsList( BuildTargetGroup group )
{
return PlayerSettings.GetScriptingDefineSymbolsForGroup( group ).Split( ';' ).ToList();
}

#if UNITY_6000_0_OR_NEWER
[Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
[System.Obsolete( "The BuildTargetGroup API has been deprecated in favor of the NamedBuildTarget API as of Unity 6.0" )]
#endif
private static void SetSymbols( List<string> symbols, BuildTargetGroup group )
{
Expand Down

0 comments on commit 55b8356

Please sign in to comment.