Class TooltipContent
Represents an extended tooltip for a MenuAction.
Implements
Inherited Members
Namespace: UnityEditor.ProBuilder
Assembly: Unity.ProBuilder.Editor.dll
Syntax
[Serializable]
public sealed class TooltipContent : IEquatable<TooltipContent>
Constructors
Name | Description |
---|---|
TooltipContent(string, string, params char[]) | Creates a new tooltip with a title, a summary, and an optional array of characters for the shortcut. To specify modifier keys, use the Windows control keys. ProBuilder manages switching to Linux control keys for the macOS and Linux versions of the Unity Editor. |
TooltipContent(string, string, string) | Creates a new tooltip with a title, a summary, and an optional string for the shortcut. |
Properties
Name | Description |
---|---|
shortcut | Gets or sets a text representation of the (optional) shortcut assigned to this menu item. |
summary | Gets or sets a brief summary of what this menu action does. |
title | Gets or sets the title in the tooltip window. |
Methods
Name | Description |
---|---|
Equals(object) | Compares the title property of each tooltip to determine whether the specified tooltip is equal to this one. |
Equals(TooltipContent) | Compares the title property of each tooltip to determine whether the specified tooltip is equal to this one. |
FromString(string) | Creates a new Tooltip with only the specified title. |
GetHashCode() | Returns the hash code for this instance. |
ToString() | Converts a Tooltip to a string. |
Operators
Name | Description |
---|---|
explicit operator TooltipContent(string) | Creates a new Tooltip with only the specified title. |
explicit operator string(TooltipContent) | Converts a tooltip to a string. |