Ejemplo n.º 1
0
        private UnityObjectReferenceChain(IEnumerable <Object> objects)
        {
            var hashSet    = new HashSet <Object>();
            var dictionary = new ReferenceDictionary();

            foreach (var @object in objects)
            {
                dictionary.AddReference(@object);
                FindAssetReferencesRecursive(@object, hashSet, dictionary);
            }

            Result = dictionary.CreateReadonlyDictionary();
        }