JUtils
A unity utilities library
JUtils.UnityObjectExtensions Class Reference

Static Public Member Functions

static T OrNull< T > ([CanBeNull] this T obj)
 Will return null if the object is null, or if it has been destroyed. Also prevents warning when using ?. or ?? More...
 

Member Function Documentation

◆ OrNull< T >()

static T JUtils.UnityObjectExtensions.OrNull< T > ( [CanBeNull] this T  obj)
inlinestatic

Will return null if the object is null, or if it has been destroyed. Also prevents warning when using ?. or ??

Type Constraints
T :Object 

The documentation for this class was generated from the following file: