Struct ClipDrawOptions
The user-defined options for drawing a clip.
Namespace: UnityEditor.Timeline
Syntax
public struct ClipDrawOptions
Properties
errorText
Text that indicates if the clip should display an error.
Declaration
public string errorText { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
If the error text is not empty or null, then the clip displays a warning. The error text is used as the tooltip.
highlightColor
The color drawn under the clip. By default, the color is the same as the track color.
Declaration
public Color highlightColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
icons
Icons to display on the clip.
Declaration
public IEnumerable<Texture2D> icons { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<Texture2D> |
tooltip
The tooltip to show for the clip.
Declaration
public string tooltip { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
Boolean | Returns |
Equals(ClipDrawOptions)
Compares this object with another ClipDrawOptions
.
Declaration
public bool Equals(ClipDrawOptions other)
Parameters
Type | Name | Description |
---|---|---|
ClipDrawOptions | other | The object to compare with. |
Returns
Type | Description |
---|---|
Boolean | Returns true if |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer that is the hash code for this instance. |
Operators
Equality(ClipDrawOptions, ClipDrawOptions)
Compares two ClipDrawOptions
objects.
Declaration
public static bool operator ==(ClipDrawOptions options1, ClipDrawOptions options2)
Parameters
Type | Name | Description |
---|---|---|
ClipDrawOptions | options1 | The first object. |
ClipDrawOptions | options2 | The second object. |
Returns
Type | Description |
---|---|
Boolean | Returns true if they are equal. |
Inequality(ClipDrawOptions, ClipDrawOptions)
Compares two ClipDrawOptions
objects.
Declaration
public static bool operator !=(ClipDrawOptions options1, ClipDrawOptions options2)
Parameters
Type | Name | Description |
---|---|---|
ClipDrawOptions | options1 | The first object. |
ClipDrawOptions | options2 | The second object. |
Returns
Type | Description |
---|---|
Boolean | Returns true if they are not equal. |