mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[unity] Apply SkeletonRenderer.initialFlip with Skeleton constructor.
This commit is contained in:
parent
8cb99365cd
commit
791e955caf
@ -184,13 +184,14 @@ namespace Spine.Unity {
|
||||
meshRenderer = GetComponent<MeshRenderer>();
|
||||
rendererBuffers.Initialize();
|
||||
|
||||
skeleton = new Skeleton(skeletonData);
|
||||
skeleton = new Skeleton(skeletonData) {
|
||||
flipX = initialFlipX,
|
||||
flipY = initialFlipY
|
||||
};
|
||||
|
||||
if (!string.IsNullOrEmpty(initialSkinName) && !string.Equals(initialSkinName, "default", System.StringComparison.Ordinal))
|
||||
skeleton.SetSkin(initialSkinName);
|
||||
|
||||
skeleton.flipX = initialFlipX;
|
||||
skeleton.flipY = initialFlipY;
|
||||
|
||||
separatorSlots.Clear();
|
||||
for (int i = 0; i < separatorSlotNames.Length; i++)
|
||||
separatorSlots.Add(skeleton.FindSlot(separatorSlotNames[i]));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user