/// <summary> /// Sets the content of the pin button according to its current state. /// </summary> private void UpdatePinButton() { pinButton.SetContent(new GUIContent(IsPinned ? "-" : "+", IsPinned ? "Unpin" : "Pin")); }