Skip to content

Commit

Permalink
Fix build failure due to ambiguous reference to Object introduced by …
Browse files Browse the repository at this point in the history
…new extension methods using System
  • Loading branch information
searica committed Nov 17, 2023
1 parent 43a011e commit 1d08d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JotunnLib/Extensions/GameObjectExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static GameObject OrNull(this GameObject @this)
/// <typeparam name="T">Any type that inherits MonoBehaviour</typeparam>
/// <param name="this">this</param>
/// <returns>Returns null when MonoBehaviours.op_equality returns false.</returns>
public static T OrNull<T>(this T @this) where T : Object
public static T OrNull<T>(this T @this) where T : UnityEngine.Object
{
return (T)(@this ? @this : null);
}
Expand Down

0 comments on commit 1d08d21

Please sign in to comment.