UnityEngine.GUILayoutUtility.SelectIDList C# (CSharp) Method

SelectIDList() static private method

static private SelectIDList ( int instanceID, bool isWindow ) : LayoutCache
instanceID int
isWindow bool
return LayoutCache
        internal static LayoutCache SelectIDList(int instanceID, bool isWindow)
        {
            LayoutCache cache;
            Dictionary<int, LayoutCache> dictionary = !isWindow ? s_StoredLayouts : s_StoredWindows;
            if (!dictionary.TryGetValue(instanceID, out cache))
            {
                cache = new LayoutCache();
                dictionary[instanceID] = cache;
            }
            current.topLevel = cache.topLevel;
            current.layoutGroups = cache.layoutGroups;
            current.windows = cache.windows;
            return cache;
        }

Usage Example

コード例 #1
0
 internal static void EndGUI(int layoutType)
 {
     try
     {
         if (Event.current.type == EventType.Layout)
         {
             if (layoutType != 0)
             {
                 if (layoutType != 1)
                 {
                     if (layoutType == 2)
                     {
                         GUILayoutUtility.LayoutFromEditorWindow();
                     }
                 }
                 else
                 {
                     GUILayoutUtility.Layout();
                 }
             }
         }
         GUILayoutUtility.SelectIDList(GUIUtility.s_OriginalID, false);
         GUIContent.ClearStaticCache();
     }
     finally
     {
         GUIUtility.Internal_ExitGUI();
     }
 }
All Usage Examples Of UnityEngine.GUILayoutUtility::SelectIDList