Object Comparator

Compares two objects (derived from UnityEngine.Object) using a specified comparator.
Comparison against None (Object) means comparing against a null object.
Inputs
- A: First object.
- Comparator: The comparator to use.
- Equals
- Not Equals
- B: Second object.
- Destroyed Means Null: If unchecked, then reference comparison will be done using
ReferenceEqualsinstead of the==operator.ReferenceEqualsagainstnullreturnstrueeven if the object is destroyed, and only returnsfalseif the reference is trulynull. Although it is safer to treat destroyed objects asnull, please note that using the==operator onUnityEngine.Objectincurs a higher performance cost as described in Unity's General Optimizations.
Outputs
- Out: The boolean result whether it matches the comparator condition or not.