/************************************************************************************************************************/

        private static void GatherFromComponents(GameObject gameObject, HashSet <AnimationClip> clips)
        {
            var root = AnimancerEditorUtilities.FindRoot(gameObject);

            var components = ObjectPool.AcquireList <MonoBehaviour>();

            root.GetComponentsInChildren(true, components);
            GatherFromComponents(components, clips);
            ObjectPool.Release(components);
        }
Esempio n. 2
0
        /************************************************************************************************************************/

        private void GatherFromComponents(GameObject gameObject)
        {
            var root = AnimancerEditorUtilities.FindRoot(gameObject);

            using (ObjectPool.Disposable.AcquireList <MonoBehaviour>(out var components))
            {
                root.GetComponentsInChildren(true, components);
                GatherFromComponents(components);
            }
        }