UnityEditor.EditorPrefs.SetFloat C# (CSharp) Method

SetFloat() private method

private SetFloat ( string key, float value ) : void
key string
value float
return void
        public static extern void SetFloat(string key, float value);
        /// <summary>

Usage Example

示例#1
0
        private void OnObjectGridGUI()
        {
            this.InitIfNeeded();
            if (this.m_Styles == null)
            {
                this.m_Styles = new ObjectSelector.Styles();
            }
            if (this.m_EditorCache == null)
            {
                this.m_EditorCache = new EditorCache(EditorFeatures.PreviewGUI);
            }
            this.ResizeBottomPartOfWindow();
            Rect position = base.position;

            EditorPrefs.SetFloat("ObjectSelectorWidth", position.width);
            EditorPrefs.SetFloat("ObjectSelectorHeight", position.height);
            GUI.BeginGroup(new Rect(0f, 0f, base.position.width, base.position.height), GUIContent.none);
            this.m_ListArea.HandleKeyboard(false);
            this.SearchArea();
            this.GridListArea();
            this.PreviewArea();
            GUI.EndGroup();
            GUI.Label(new Rect(base.position.width * 0.5f - 16f, base.position.height - this.m_PreviewSize + 2f, 32f, this.m_Styles.bottomResize.fixedHeight), GUIContent.none, this.m_Styles.bottomResize);
        }
All Usage Examples Of UnityEditor.EditorPrefs::SetFloat