UnityEditor.ReflectionProbeEditor.IsCollidingWithOtherProbes C# (CSharp) Method

IsCollidingWithOtherProbes() private method

private IsCollidingWithOtherProbes ( string targetPath, ReflectionProbe targetProbe, ReflectionProbe &collidingProbe ) : bool
targetPath string
targetProbe UnityEngine.ReflectionProbe
collidingProbe UnityEngine.ReflectionProbe
return bool
        private bool IsCollidingWithOtherProbes(string targetPath, ReflectionProbe targetProbe, out ReflectionProbe collidingProbe)
        {
            ReflectionProbe[] probeArray = Enumerable.ToArray<ReflectionProbe>(Object.FindObjectsOfType<ReflectionProbe>());
            collidingProbe = null;
            foreach (ReflectionProbe probe in probeArray)
            {
                if (((probe != targetProbe) && (probe.customBakedTexture != null)) && (AssetDatabase.GetAssetPath(probe.customBakedTexture) == targetPath))
                {
                    collidingProbe = probe;
                    return true;
                }
            }
            return false;
        }