stfexp.animation_blendtree¶
[ Schema | Category: Data ]
Place animations on 1d or 2d coordinates.
Implementations¶
Blender |
STFEXP_Animation_Blendtree |
|
Unity |
BlendTree |
Properties¶
Main¶
type¶
required Constant: "stfexp.animation_blendtree"
blendtree_type¶
required Enum: "1d" | "2d"
animations¶
required Type: array<Animation Mapping Object>
Animation Mapping Object¶
position¶
required Type: "number" | "array"
A single float for 1d blendtrees or an array of two floats for 2d blendtrees.
Examples:
0.14
[
0.3,
0.7
]
animation¶
required Type: Resource-Ref
Resource reference. The resource must import into an animation.
Json Example¶
"eefcb040-54f2-4025-98e2-b0fda174a572": {
"type": "stfexp.animation_blendtree",
"name": "Tail Puppet",
"blendtree_type": "2d",
"referenced_resources": [
"7e1534a8-fef7-4f87-8c81-b356e5962bc3",
"0530bc0d-603e-4a4a-b105-29645cac5ce1",
"98be1861-4e41-4076-9655-4884b3bdf58b",
"1d1bfee4-e8dd-48c0-903f-1832e595778a",
"f101992e-9619-48e8-a1bd-9da39c1e9a34"
],
"animations": [
{
"position": [
0.0,
1.0
],
"animation": 0
},
{
"position": [
0.0,
-1.0
],
"animation": 1
},
{
"position": [
-1.0,
0.0
],
"animation": 2
},
{
"position": [
1.0,
0.0
],
"animation": 3
},
{
"position": [
0.0,
0.0
],
"animation": 4
}
]
},