mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
[ue] Rewire examples to use file names for atlas and skeleton files with differnt suffixes.
This commit is contained in:
parent
39b6a50311
commit
08a46ff1e8
@ -556,26 +556,29 @@ cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-haxe/example/asse
|
||||
cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-haxe/example/assets/"
|
||||
|
||||
echo "spine-ue4"
|
||||
rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.json"
|
||||
rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.atlas"
|
||||
rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.png"
|
||||
rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.json"
|
||||
rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.atlas"
|
||||
rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.png"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.json"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor-pro.json"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.atlas"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.png"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.json"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy-pro.json"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.atlas"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.png"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match-pro.skel"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match-pro-skeleton.skel"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match-pro.atlas"
|
||||
rm -f "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match-pro.png"
|
||||
|
||||
cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.json"
|
||||
cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor-pro.json"
|
||||
cp -f ../raptor/export/raptor.atlas "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/"
|
||||
cp -f ../raptor/export/raptor.png "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/"
|
||||
|
||||
cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.json"
|
||||
cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy-pro.json"
|
||||
cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/"
|
||||
cp -f ../spineboy/export/spineboy.png "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/"
|
||||
|
||||
cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match-pro.png"
|
||||
cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match-pro.atlas"
|
||||
cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match.png"
|
||||
cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match.atlas"
|
||||
cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-ue4/Content/GettingStarted/Assets/mix-and-match/mix-and-match-pro.skel"
|
||||
|
||||
echo "spine-unity"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
spine-ue4/Content/GettingStarted/Assets/Raptor/raptor-pro.uasset
Normal file
BIN
spine-ue4/Content/GettingStarted/Assets/Raptor/raptor-pro.uasset
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 341 KiB After Width: | Height: | Size: 341 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -63,7 +63,7 @@ void SSpineWidget::SetData(USpineWidget *Widget) {
|
||||
if (widget && widget->skeleton && widget->Atlas) {
|
||||
Skeleton *skeleton = widget->skeleton;
|
||||
skeleton->setToSetupPose();
|
||||
skeleton->updateWorldTransform();
|
||||
skeleton->updateWorldTransform(Physics_None);
|
||||
Vector<float> scratchBuffer;
|
||||
float x, y, w, h;
|
||||
skeleton->getBounds(x, y, w, h, scratchBuffer);
|
||||
|
||||
@ -111,7 +111,7 @@ void USpineSkeletonAnimationComponent::InternalTick(float DeltaTime, bool CallDe
|
||||
state->apply(*skeleton);
|
||||
if (CallDelegates) BeforeUpdateWorldTransform.Broadcast(this);
|
||||
skeleton->update(DeltaTime);
|
||||
skeleton->updateWorldTransform();
|
||||
skeleton->updateWorldTransform(Physics_Update);
|
||||
if (CallDelegates) AfterUpdateWorldTransform.Broadcast(this);
|
||||
}
|
||||
}
|
||||
|
||||
@ -174,7 +174,7 @@ void USpineSkeletonComponent::SetBoneWorldPosition(const FString &BoneName, cons
|
||||
void USpineSkeletonComponent::UpdateWorldTransform() {
|
||||
CheckState();
|
||||
if (skeleton) {
|
||||
skeleton->updateWorldTransform();
|
||||
skeleton->updateWorldTransform(Physics_Update);
|
||||
}
|
||||
}
|
||||
|
||||
@ -301,7 +301,7 @@ void USpineSkeletonComponent::InternalTick(float DeltaTime, bool CallDelegates,
|
||||
|
||||
if (skeleton) {
|
||||
if (CallDelegates) BeforeUpdateWorldTransform.Broadcast(this);
|
||||
skeleton->updateWorldTransform();
|
||||
skeleton->updateWorldTransform(Physics_Update);
|
||||
if (CallDelegates) AfterUpdateWorldTransform.Broadcast(this);
|
||||
}
|
||||
}
|
||||
|
||||
@ -270,10 +270,10 @@ bool USpineWidget::SetAttachment(const FString slotName, const FString attachmen
|
||||
return false;
|
||||
}
|
||||
|
||||
void USpineWidget::UpdateWorldTransform(spine::Physics physics) {
|
||||
void USpineWidget::UpdateWorldTransform() {
|
||||
CheckState();
|
||||
if (skeleton) {
|
||||
skeleton->updateWorldTransform(physics);
|
||||
skeleton->updateWorldTransform(Physics_Update);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -102,17 +102,24 @@ public:
|
||||
}
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|TrackEntry")
|
||||
float GetAttachmentThreshold() { return entry ? entry->getAttachmentThreshold() : 0; }
|
||||
float GetAlphaAttachmentThreshold() { return entry ? entry->getAlphaAttachmentThreshold() : 0; }
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|TrackEntry")
|
||||
void SetAttachmentThreshold(float attachmentThreshold) {
|
||||
if (entry) entry->setAttachmentThreshold(attachmentThreshold);
|
||||
void SetAlphaAttachmentThreshold(float attachmentThreshold) {
|
||||
if (entry) entry->setAlphaAttachmentThreshold(attachmentThreshold);
|
||||
}
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|TrackEntry")
|
||||
float GetDrawOrderThreshold() { return entry ? entry->getDrawOrderThreshold() : 0; }
|
||||
float GetMixDrawOrderThreshold() { return entry ? entry->getMixDrawOrderThreshold() : 0; }
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|TrackEntry")
|
||||
void SetDrawOrderThreshold(float drawOrderThreshold) {
|
||||
if (entry) entry->setDrawOrderThreshold(drawOrderThreshold);
|
||||
void SetMixDrawOrderThreshold(float drawOrderThreshold) {
|
||||
if (entry) entry->setMixDrawOrderThreshold(drawOrderThreshold);
|
||||
}
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|TrackEntry")
|
||||
float GetMixAttachmentThreshold() { return entry ? entry->getMixAttachmentThreshold() : 0; }
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|TrackEntry")
|
||||
void SetMixAttachmentThreshold(float drawOrderThreshold) {
|
||||
if (entry) entry->setMixAttachmentThreshold(drawOrderThreshold);
|
||||
}
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|TrackEntry")
|
||||
|
||||
@ -103,7 +103,7 @@ public:
|
||||
bool SetAttachment(const FString slotName, const FString attachmentName);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|Skeleton")
|
||||
void UpdateWorldTransform(spine::Physics physics);
|
||||
void UpdateWorldTransform();
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|Skeleton")
|
||||
void SetToSetupPose();
|
||||
|
||||
@ -1,103 +1,95 @@
|
||||
spineboy-pro.png
|
||||
size: 2048, 1024
|
||||
size: 1024, 256
|
||||
filter: Linear, Linear
|
||||
pma: true
|
||||
scale: 0.5
|
||||
crosshair
|
||||
bounds: 1053, 13, 89, 89
|
||||
dust01
|
||||
bounds: 1239, 11, 96, 73
|
||||
rotate: 90
|
||||
dust02
|
||||
bounds: 1409, 44, 86, 88
|
||||
dust03
|
||||
bounds: 1831, 416, 62, 52
|
||||
bounds: 352, 7, 45, 45
|
||||
eye-indifferent
|
||||
bounds: 1144, 18, 93, 89
|
||||
bounds: 862, 105, 47, 45
|
||||
eye-surprised
|
||||
bounds: 1314, 43, 93, 89
|
||||
bounds: 505, 79, 47, 45
|
||||
front-bracer
|
||||
bounds: 1749, 410, 58, 80
|
||||
rotate: 90
|
||||
bounds: 826, 66, 29, 40
|
||||
front-fist-closed
|
||||
bounds: 1592, 396, 75, 82
|
||||
bounds: 786, 65, 38, 41
|
||||
front-fist-open
|
||||
bounds: 1504, 391, 86, 87
|
||||
front-foot
|
||||
bounds: 580, 33, 126, 69
|
||||
front-shin
|
||||
bounds: 496, 51, 82, 184
|
||||
front-thigh
|
||||
bounds: 1504, 277, 48, 112
|
||||
front-upper-arm
|
||||
bounds: 1554, 292, 54, 97
|
||||
goggles
|
||||
bounds: 1136, 109, 261, 166
|
||||
bounds: 710, 51, 43, 44
|
||||
rotate: 90
|
||||
front-foot
|
||||
bounds: 210, 6, 63, 35
|
||||
front-shin
|
||||
bounds: 665, 128, 41, 92
|
||||
rotate: 90
|
||||
front-thigh
|
||||
bounds: 2, 2, 23, 56
|
||||
rotate: 90
|
||||
front-upper-arm
|
||||
bounds: 250, 205, 23, 49
|
||||
goggles
|
||||
bounds: 665, 171, 131, 83
|
||||
gun
|
||||
bounds: 1463, 480, 210, 203
|
||||
bounds: 798, 152, 105, 102
|
||||
head
|
||||
bounds: 1753, 724, 271, 298
|
||||
bounds: 2, 27, 136, 149
|
||||
hoverboard-board
|
||||
bounds: 2, 83, 492, 152
|
||||
bounds: 2, 178, 246, 76
|
||||
hoverboard-thruster
|
||||
bounds: 1207, 372, 60, 64
|
||||
bounds: 722, 96, 30, 32
|
||||
rotate: 90
|
||||
hoverglow-small
|
||||
bounds: 2, 6, 274, 75
|
||||
bounds: 275, 81, 137, 38
|
||||
mouth-grind
|
||||
bounds: 1610, 301, 93, 59
|
||||
rotate: 90
|
||||
bounds: 614, 97, 47, 30
|
||||
mouth-oooo
|
||||
bounds: 1486, 139, 93, 59
|
||||
rotate: 90
|
||||
bounds: 612, 65, 47, 30
|
||||
mouth-smile
|
||||
bounds: 1497, 44, 93, 59
|
||||
rotate: 90
|
||||
bounds: 661, 64, 47, 30
|
||||
muzzle-glow
|
||||
bounds: 1304, 234, 198, 198
|
||||
bounds: 382, 54, 25, 25
|
||||
muzzle-ring
|
||||
bounds: 278, 32, 49, 209
|
||||
bounds: 275, 54, 25, 105
|
||||
rotate: 90
|
||||
muzzle01
|
||||
bounds: 667, 673, 542, 349
|
||||
bounds: 911, 95, 67, 40
|
||||
rotate: 90
|
||||
muzzle02
|
||||
bounds: 1211, 685, 540, 337
|
||||
bounds: 792, 108, 68, 42
|
||||
muzzle03
|
||||
bounds: 2, 597, 663, 425
|
||||
bounds: 956, 171, 83, 53
|
||||
rotate: 90
|
||||
muzzle04
|
||||
bounds: 2, 237, 596, 358
|
||||
bounds: 275, 7, 75, 45
|
||||
muzzle05
|
||||
bounds: 667, 372, 538, 299
|
||||
bounds: 140, 3, 68, 38
|
||||
neck
|
||||
bounds: 1504, 234, 36, 41
|
||||
bounds: 250, 182, 18, 21
|
||||
portal-bg
|
||||
bounds: 600, 104, 266, 266
|
||||
bounds: 140, 43, 133, 133
|
||||
portal-flare1
|
||||
bounds: 940, 42, 111, 60
|
||||
bounds: 554, 65, 56, 30
|
||||
portal-flare2
|
||||
bounds: 600, 375, 114, 61
|
||||
bounds: 759, 112, 57, 31
|
||||
rotate: 90
|
||||
portal-flare3
|
||||
bounds: 708, 43, 115, 59
|
||||
bounds: 554, 97, 58, 30
|
||||
portal-shade
|
||||
bounds: 868, 104, 266, 266
|
||||
bounds: 275, 121, 133, 133
|
||||
portal-streaks1
|
||||
bounds: 1753, 470, 252, 256
|
||||
rotate: 90
|
||||
portsl-streaks2
|
||||
bounds: 1211, 434, 250, 249
|
||||
bounds: 410, 126, 126, 128
|
||||
portal-streaks2
|
||||
bounds: 538, 129, 125, 125
|
||||
rear-bracer
|
||||
bounds: 1675, 447, 56, 72
|
||||
rotate: 90
|
||||
bounds: 857, 67, 28, 36
|
||||
rear-foot
|
||||
bounds: 825, 42, 113, 60
|
||||
bounds: 663, 96, 57, 30
|
||||
rear-shin
|
||||
bounds: 1675, 505, 75, 178
|
||||
bounds: 414, 86, 38, 89
|
||||
rotate: 90
|
||||
rear-thigh
|
||||
bounds: 600, 491, 65, 104
|
||||
bounds: 756, 63, 28, 47
|
||||
rear-upper-arm
|
||||
bounds: 489, 2, 47, 87
|
||||
bounds: 60, 5, 20, 44
|
||||
rotate: 90
|
||||
torso
|
||||
bounds: 1304, 134, 98, 180
|
||||
rotate: 90
|
||||
bounds: 905, 164, 49, 90
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 239 KiB |
Loading…
x
Reference in New Issue
Block a user