Struct ClipBackgroundRegion
Description of the on-screen area where a clip is drawn
Inherited Members
Namespace: UnityEditor.Timeline
Assembly: Unity.Timeline.Editor.dll
Syntax
public struct ClipBackgroundRegion
Constructors
ClipBackgroundRegion(Rect, double, double)
Constructor
Declaration
public ClipBackgroundRegion(Rect _position, double _startTime, double _endTime)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | _position | The rectangle where the background of the clip is drawn. |
| double | _startTime | The start of the clip background rectangle. This will be the higher value between the clip start time and the visible start time. |
| double | _endTime | The end of the clip background rectangle. This will be the lower value between the clip end time and the visible end time. |
Properties
endTime
The end time of the region, relative to the clip.
Declaration
public readonly double endTime { get; }
Property Value
| Type | Description |
|---|---|
| double |
position
The rectangle where the background of the clip is drawn.
Declaration
public readonly Rect position { get; }
Property Value
| Type | Description |
|---|---|
| Rect |
Remarks
The rectangle is clipped to the screen. The rectangle does not include clip borders.
startTime
The start time of the region, relative to the clip.
Declaration
public readonly double startTime { get; }
Property Value
| Type | Description |
|---|---|
| double |
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 |
|---|---|
| bool | Returns |
Overrides
Equals(ClipBackgroundRegion)
Compares this object with another ClipBackgroundRegion.
Declaration
public bool Equals(ClipBackgroundRegion other)
Parameters
| Type | Name | Description |
|---|---|---|
| ClipBackgroundRegion | other | The object to compare with. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
operator ==(ClipBackgroundRegion, ClipBackgroundRegion)
Compares two ClipBackgroundRegion objects.
Declaration
public static bool operator ==(ClipBackgroundRegion region1, ClipBackgroundRegion region2)
Parameters
| Type | Name | Description |
|---|---|---|
| ClipBackgroundRegion | region1 | The first object. |
| ClipBackgroundRegion | region2 | The second object. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if they are equal. |
operator !=(ClipBackgroundRegion, ClipBackgroundRegion)
Compares two ClipBackgroundRegion objects.
Declaration
public static bool operator !=(ClipBackgroundRegion region1, ClipBackgroundRegion region2)
Parameters
| Type | Name | Description |
|---|---|---|
| ClipBackgroundRegion | region1 | The first object. |
| ClipBackgroundRegion | region2 | The second object. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if they are not equal. |