mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Added SpineSkeletonComponent::GetBones, closes #1082.
This commit is contained in:
parent
59aa3a8780
commit
79e607a5f1
@ -171,6 +171,15 @@ bool USpineSkeletonComponent::GetFlipY() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void USpineSkeletonComponent::GetBones(TArray<FString> &Bones) {
|
||||||
|
CheckState();
|
||||||
|
if (skeleton) {
|
||||||
|
for (size_t i = 0, n = skeleton->getBones().size(); i < n; i++) {
|
||||||
|
Bones.Add(skeleton->getBones()[i]->getData().getName().buffer());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void USpineSkeletonComponent::BeginPlay() {
|
void USpineSkeletonComponent::BeginPlay() {
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,6 +90,9 @@ public:
|
|||||||
UFUNCTION(BlueprintCallable, Category = "Components|Spine|Skeleton")
|
UFUNCTION(BlueprintCallable, Category = "Components|Spine|Skeleton")
|
||||||
bool GetFlipY();
|
bool GetFlipY();
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintPure, Category = "Components|Spine|Skeleton")
|
||||||
|
void GetBones(TArray<FString> &Bones);
|
||||||
|
|
||||||
UPROPERTY(BlueprintAssignable, Category = "Components|Spine|Skeleton")
|
UPROPERTY(BlueprintAssignable, Category = "Components|Spine|Skeleton")
|
||||||
FSpineBeforeUpdateWorldTransformDelegate BeforeUpdateWorldTransform;
|
FSpineBeforeUpdateWorldTransformDelegate BeforeUpdateWorldTransform;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user