# new Blend1DClip(optsopt)
- Source:
1d blending node in animation blend tree. output clip must have blend1D and copy method
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Properties
|
Extends
Members
# delay :number
- Source:
- Inherited From:
Type:
- number
# gap :number
- Source:
- Inherited From:
Type:
- number
# inputs :Array.<clay.animation.Blend1DClip.IClipInput>
- Source:
Type:
# life :number
- Source:
- Overrides:
Type:
- number
# name :string
- Source:
- Inherited From:
Type:
- string
# onfinish :function
- Source:
- Inherited From:
Type:
- function
# onframe :function
- Source:
- Inherited From:
Type:
- function
# onrestart :function
- Source:
- Inherited From:
Type:
- function
# output :clay.animation.Clip
- Source:
Output clip must have blend1D and copy method
Type:
# playbackRate :number
- Source:
- Inherited From:
Type:
- number
# position :number
- Source:
Type:
- number
# target :Object
- Source:
- Inherited From:
Type:
- Object
Methods
# addInput(position, inputClip, offsetopt) → {clay.animation.Blend1DClip.IClipInput}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
position |
number | ||
inputClip |
clay.animation.Clip | ||
offset |
number |
<optional> |
Returns:
# clone(cloneInputs) → {clay.animation.Blend1DClip}
- Source:
Clone a new Blend1D clip
Parameters:
Name | Type | Description |
---|---|---|
cloneInputs |
boolean | True if clone the input clips |
Returns:
# pause()
- Source:
- Inherited From:
Pause the clip.
# resume()
- Source:
- Inherited From:
Resume the clip.
# setEasing(easing)
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
easing |
string | function |
# setLoop(loop)
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
loop |
number | boolean |
# setTime(time) → {string}
- Source:
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
time |
number |
Returns:
- Type
- string
# step(time) → {string}
- Source:
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
time |
number |
Returns:
- Type
- string
Type Definitions
# IClipInput
- Source:
Properties:
Name | Type | Description |
---|---|---|
position |
number | |
clip |
clay.animation.Clip | |
offset |
number |
Type:
- Object