UnityEditor.PrefKey.FromUniqueString C# (CSharp) Method

FromUniqueString() public method

public FromUniqueString ( string s ) : void
s string
return void
        public void FromUniqueString(string s)
        {
            this.Load();
            int index = s.IndexOf(";");
            if (index < 0)
            {
                Debug.LogError("Malformed string in Keyboard preferences");
            }
            else
            {
                this.m_name = s.Substring(0, index);
                this.m_event = Event.KeyboardEvent(s.Substring(index + 1));
            }
        }