Class TimelineClipExtensions
Inheritance
TimelineClipExtensions
Syntax
public static class TimelineClipExtensions
Methods
BuildClipWeightCurve(TimelineClip)
Declaration
public static BlobAssetReference<AnimationCurveBlob> BuildClipWeightCurve(this TimelineClip clip)
Parameters
Type |
Name |
Description |
TimelineClip |
clip |
|
Returns
GetActiveRange(TimelineClip)
Returns the start and end range for a TimelineClip as an ActiveRange
Declaration
public static ActiveRange GetActiveRange(this TimelineClip clip)
Parameters
Type |
Name |
Description |
TimelineClip |
clip |
|
Returns
GetEffectiveRange(TimelineClip)
Returns the extrapolated range of the timeline clip, clamped to the length of the timeline
Declaration
public static double2 GetEffectiveRange(this TimelineClip clip)
Parameters
Type |
Name |
Description |
TimelineClip |
clip |
|
Returns
GetMixCurveHash(TimelineClip)
Declaration
public static Entities.Hash128 GetMixCurveHash(this TimelineClip clip)
Parameters
Type |
Name |
Description |
TimelineClip |
clip |
|
Returns
Type |
Description |
Unity.Entities.Hash128 |
|
GetSubTimelineRange(TimelineClip)
Returns the active range of the subtimeline of this clip
Declaration
public static ActiveRange GetSubTimelineRange(this TimelineClip clip)
Parameters
Type |
Name |
Description |
TimelineClip |
clip |
|
Returns
Gets the parent to local time transform for a TimelineClip
Declaration
public static TimeTransform GetTimeTransform(this TimelineClip clip)
Parameters
Type |
Name |
Description |
TimelineClip |
clip |
|
Returns
InRangeInclLoops(TimelineClip, ActiveRange)
Checks if a timeline clip is within range, including loops of the timeline asset.
Declaration
public static bool InRangeInclLoops(this TimelineClip clip, ActiveRange activeRange)
Parameters
Type |
Name |
Description |
TimelineClip |
clip |
The TimelineClip including Loops
|
ActiveRange |
activeRange |
The active range to check. If this is larger than the timelines range, it is checked for loops
|
Returns
InRangeInclLoops(ActiveRange, ActiveRange, ActiveRange)
Checks if a timeline clip is within range, including loops of the timeline asset.
Declaration
public static bool InRangeInclLoops(ActiveRange clipRange, ActiveRange activeRange, ActiveRange timelineRange)
Parameters
Type |
Name |
Description |
ActiveRange |
clipRange |
The range of the TimelineClip including Loops
|
ActiveRange |
activeRange |
The active range to check. If this is larger than the timelines range, it is checked for loops
|
ActiveRange |
timelineRange |
|
Returns