Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenoBoy committed Feb 8, 2024
2 parents e724f2a + 45722ca commit 3a414cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/Extensions/UnityObjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static class UnityObjectExtensions
/// Will return null if the object is null, or if it has been destroyed. Also prevents warning when using ?. or ??
/// </summary>
[CanBeNull]
public static Object OrNull([CanBeNull] this Object obj)
public static T OrNull<T>([CanBeNull] this T obj) where T : Object
{
return obj == null ? null : obj;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jutils",
"displayName": "JUtils",
"version": "1.10.4",
"version": "1.10.5",
"description": "A unity utilities library, this contains many handy extensions, components and data structures with custom editors",
"license": "LGPL-3.0",
"author": {
Expand Down

0 comments on commit 3a414cc

Please sign in to comment.