Internal_SetupSavedGUIState() private method

private Internal_SetupSavedGUIState ( IntPtr &state, Vector2 &screenManagerSize ) : void
state System.IntPtr
screenManagerSize Vector2
return void
Example #1
0
        internal static SavedGUIState Create()
        {
            SavedGUIState result = default(SavedGUIState);

            if (SavedGUIState.Internal_GetGUIDepth() > 0)
            {
                result.skin        = GUI.skin;
                result.layoutCache = new GUILayoutUtility.LayoutCache(GUILayoutUtility.current);
                SavedGUIState.Internal_SetupSavedGUIState(out result.guiState, out result.screenManagerSize);
            }
            return(result);
        }
Example #2
0
        internal static SavedGUIState Create()
        {
            SavedGUIState savedGuiState = new SavedGUIState();

            if (SavedGUIState.Internal_GetGUIDepth() > 0)
            {
                savedGuiState.skin        = GUI.skin;
                savedGuiState.layoutCache = new GUILayoutUtility.LayoutCache(GUILayoutUtility.current);
                SavedGUIState.Internal_SetupSavedGUIState(out savedGuiState.guiState, out savedGuiState.screenManagerSize);
            }
            return(savedGuiState);
        }