UnityEditor.HierarchyProperty.Next C# (CSharp) Method

Next() private method

private Next ( int expanded ) : bool
expanded int
return bool
        public extern bool Next(int[] expanded);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

Exemplo n.º 1
0
        public string[] GetImplicitProjectViewSelection()
        {
            HierarchyProperty hierarchyProperty = new HierarchyProperty(HierarchyType.Assets);
            bool flag = false;

            string[] result;
            if (!hierarchyProperty.Next(null))
            {
                result = new string[0];
            }
            else
            {
                Hashtable            hashtable = new Hashtable();
                UnityEngine.Object[] objects   = Selection.objects;
                for (int i = 0; i < objects.Length; i++)
                {
                    UnityEngine.Object @object = objects[i];
                    hashtable.Add(@object.GetInstanceID(), null);
                }
                bool       flag2;
                List <int> oneFolderImplicitSelection = this.GetOneFolderImplicitSelection(hierarchyProperty, hashtable, false, ref flag, out flag2);
                string[]   array = new string[oneFolderImplicitSelection.Count];
                for (int j = 0; j < array.Length; j++)
                {
                    array[j] = AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath(oneFolderImplicitSelection[j]));
                }
                result = array;
            }
            return(result);
        }
All Usage Examples Of UnityEditor.HierarchyProperty::Next