mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Merge branch '3.6' into 3.7-beta
# Conflicts: # examples/hero/export/hero-pro.json # examples/hero/export/hero-pro.skel
This commit is contained in:
commit
d5e75febee
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -670,7 +670,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: b238dfcde8209044b97d23f62bcaadf6, type: 3}
|
m_Script: {fileID: 11500000, guid: b238dfcde8209044b97d23f62bcaadf6, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
boneName: R_Ground
|
boneName: right-ground
|
||||||
parentReference: {fileID: 0}
|
parentReference: {fileID: 0}
|
||||||
mode: 0
|
mode: 0
|
||||||
position: 1
|
position: 1
|
||||||
@ -685,7 +685,7 @@ Transform:
|
|||||||
m_PrefabInternal: {fileID: 0}
|
m_PrefabInternal: {fileID: 0}
|
||||||
m_GameObject: {fileID: 380101352}
|
m_GameObject: {fileID: 380101352}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0.34059998, y: 0.002599962, z: 0}
|
m_LocalPosition: {x: 0.28119996, y: 0.002599962, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 985424158}
|
m_Father: {fileID: 985424158}
|
||||||
@ -1389,7 +1389,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3}
|
m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
skeletonDataAsset: {fileID: 11400000, guid: a5967d74cd1f3c741ba7758da7511bcf, type: 2}
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
initialSkinName: default
|
initialSkinName: default
|
||||||
initialFlipX: 0
|
initialFlipX: 0
|
||||||
initialFlipY: 0
|
initialFlipY: 0
|
||||||
@ -1421,7 +1421,7 @@ MeshRenderer:
|
|||||||
m_LightProbeUsage: 0
|
m_LightProbeUsage: 0
|
||||||
m_ReflectionProbeUsage: 1
|
m_ReflectionProbeUsage: 1
|
||||||
m_Materials:
|
m_Materials:
|
||||||
- {fileID: 2100000, guid: b04b8c6e4c57e78449f243c27617a2cd, type: 2}
|
- {fileID: 2100000, guid: 9aa2023c2c91b254f9cb0a4fba19af00, type: 2}
|
||||||
m_StaticBatchInfo:
|
m_StaticBatchInfo:
|
||||||
firstSubMesh: 0
|
firstSubMesh: 0
|
||||||
subMeshCount: 0
|
subMeshCount: 0
|
||||||
@ -1929,7 +1929,7 @@ Transform:
|
|||||||
m_PrefabInternal: {fileID: 0}
|
m_PrefabInternal: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1018673310}
|
m_GameObject: {fileID: 1018673310}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -0.3844, y: 0.002599962, z: 0}
|
m_LocalPosition: {x: -0.3129, y: 0.002599962, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 985424158}
|
m_Father: {fileID: 985424158}
|
||||||
@ -1967,7 +1967,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: b238dfcde8209044b97d23f62bcaadf6, type: 3}
|
m_Script: {fileID: 11500000, guid: b238dfcde8209044b97d23f62bcaadf6, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
boneName: L_Ground
|
boneName: left-ground
|
||||||
parentReference: {fileID: 0}
|
parentReference: {fileID: 0}
|
||||||
mode: 0
|
mode: 0
|
||||||
position: 1
|
position: 1
|
||||||
@ -5535,6 +5535,7 @@ GameObject:
|
|||||||
- component: {fileID: 1204355831}
|
- component: {fileID: 1204355831}
|
||||||
- component: {fileID: 1204355832}
|
- component: {fileID: 1204355832}
|
||||||
- component: {fileID: 1204355833}
|
- component: {fileID: 1204355833}
|
||||||
|
- component: {fileID: 1204355834}
|
||||||
m_Layer: 9
|
m_Layer: 9
|
||||||
m_Name: Player
|
m_Name: Player
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -5592,22 +5593,40 @@ MonoBehaviour:
|
|||||||
runSpeed: 7
|
runSpeed: 7
|
||||||
gravityScale: 6.6
|
gravityScale: 6.6
|
||||||
jumpSpeed: 25
|
jumpSpeed: 25
|
||||||
jumpDuration: 0.5
|
minimumJumpDuration: 0.5
|
||||||
jumpInterruptFactor: 100
|
jumpInterruptFactor: 0.5
|
||||||
forceCrouchVelocity: 30
|
forceCrouchVelocity: 30
|
||||||
forceCrouchDuration: 0.4
|
forceCrouchDuration: 0.4
|
||||||
skeletonAnimation: {fileID: 658011011}
|
skeletonAnimation: {fileID: 658011011}
|
||||||
walkName: Walk
|
walk: {fileID: 11400000, guid: 096b05b71bb32cb409c1c8fd233b7ac3, type: 2}
|
||||||
runName: Run
|
run: {fileID: 11400000, guid: cc83238c61de380499565292bef7ada4, type: 2}
|
||||||
idleName: Idle
|
idle: {fileID: 11400000, guid: 8e32f0310bb5c02488c5c002dd41e7cb, type: 2}
|
||||||
jumpName: Jump
|
jump: {fileID: 11400000, guid: 9fc9ad17b39175242a17dedc100251e5, type: 2}
|
||||||
fallName: Fall
|
fall: {fileID: 11400000, guid: 29c1381a00cfb2c4d996f2a02fcc4506, type: 2}
|
||||||
crouchName: Crouch
|
crouch: {fileID: 11400000, guid: 25961ff211f6f3947be85f8aab3f2630, type: 2}
|
||||||
|
runFromFall: {fileID: 11400000, guid: fcca5e996ae24ba43baaaadef1fb6ad9, type: 2}
|
||||||
jumpAudioSource: {fileID: 1845666709}
|
jumpAudioSource: {fileID: 1845666709}
|
||||||
hardfallAudioSource: {fileID: 443343505}
|
hardfallAudioSource: {fileID: 443343505}
|
||||||
footstepAudioSource: {fileID: 666622921}
|
|
||||||
landParticles: {fileID: 1189703950}
|
landParticles: {fileID: 1189703950}
|
||||||
footstepEventName: Footstep
|
footstepHandler: {fileID: 1204355834}
|
||||||
|
--- !u!114 &1204355834
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1204355830}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1d55a3bd6ac81af44b2f9a4447f2ae72, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonAnimation: {fileID: 658011011}
|
||||||
|
eventName: footstep
|
||||||
|
audioSource: {fileID: 666622921}
|
||||||
|
audioClip: {fileID: 8300000, guid: e885484e1bc99fb47a0ac3f6bfa586b1, type: 3}
|
||||||
|
basePitch: 1
|
||||||
|
randomPitchOffset: 0.2
|
||||||
|
logDebugMessage: 0
|
||||||
--- !u!1 &1217440894
|
--- !u!1 &1217440894
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -6372,7 +6391,7 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 1621947181}
|
- component: {fileID: 1621947181}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Graphics
|
m_Name: Visuals
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
|
|||||||
@ -28,8 +28,6 @@
|
|||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
// Contributed by: Mitch Thompson
|
|
||||||
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Spine.Unity;
|
using Spine.Unity;
|
||||||
|
|
||||||
@ -49,99 +47,98 @@ namespace Spine.Unity.Examples {
|
|||||||
|
|
||||||
[Header("Jumping")]
|
[Header("Jumping")]
|
||||||
public float jumpSpeed = 25;
|
public float jumpSpeed = 25;
|
||||||
public float jumpDuration = 0.5f;
|
public float minimumJumpDuration = 0.5f;
|
||||||
public float jumpInterruptFactor = 100;
|
public float jumpInterruptFactor = 0.5f;
|
||||||
public float forceCrouchVelocity = 25;
|
public float forceCrouchVelocity = 25;
|
||||||
public float forceCrouchDuration = 0.5f;
|
public float forceCrouchDuration = 0.5f;
|
||||||
|
|
||||||
[Header("Graphics")]
|
[Header("Visuals")]
|
||||||
public SkeletonAnimation skeletonAnimation;
|
public SkeletonAnimation skeletonAnimation;
|
||||||
|
|
||||||
[Header("Animation")]
|
[Header("Animation")]
|
||||||
[SpineAnimation(dataField: "skeletonAnimation")]
|
public AnimationReferenceAsset walk;
|
||||||
public string walkName = "Walk";
|
public AnimationReferenceAsset run;
|
||||||
[SpineAnimation(dataField: "skeletonAnimation")]
|
public AnimationReferenceAsset idle;
|
||||||
public string runName = "Run";
|
public AnimationReferenceAsset jump;
|
||||||
[SpineAnimation(dataField: "skeletonAnimation")]
|
public AnimationReferenceAsset fall;
|
||||||
public string idleName = "Idle";
|
public AnimationReferenceAsset crouch;
|
||||||
[SpineAnimation(dataField: "skeletonAnimation")]
|
public AnimationReferenceAsset runFromFall;
|
||||||
public string jumpName = "Jump";
|
|
||||||
[SpineAnimation(dataField: "skeletonAnimation")]
|
|
||||||
public string fallName = "Fall";
|
|
||||||
[SpineAnimation(dataField: "skeletonAnimation")]
|
|
||||||
public string crouchName = "Crouch";
|
|
||||||
|
|
||||||
[Header("Effects")]
|
[Header("Effects")]
|
||||||
public AudioSource jumpAudioSource;
|
public AudioSource jumpAudioSource;
|
||||||
public AudioSource hardfallAudioSource;
|
public AudioSource hardfallAudioSource;
|
||||||
public AudioSource footstepAudioSource;
|
|
||||||
public ParticleSystem landParticles;
|
public ParticleSystem landParticles;
|
||||||
[SpineEvent]
|
public HandleEventWithAudioExample footstepHandler;
|
||||||
public string footstepEventName = "Footstep";
|
|
||||||
CharacterController controller;
|
CharacterController controller;
|
||||||
|
Vector2 input = default(Vector2);
|
||||||
Vector3 velocity = default(Vector3);
|
Vector3 velocity = default(Vector3);
|
||||||
float jumpEndTime = 0;
|
float minimumJumpEndTime = 0;
|
||||||
bool jumpInterrupt = false;
|
|
||||||
float forceCrouchEndTime;
|
float forceCrouchEndTime;
|
||||||
Vector2 input;
|
|
||||||
bool wasGrounded = false;
|
bool wasGrounded = false;
|
||||||
|
|
||||||
|
AnimationReferenceAsset targetAnimation;
|
||||||
|
AnimationReferenceAsset previousTargetAnimation;
|
||||||
|
|
||||||
void Awake () {
|
void Awake () {
|
||||||
controller = GetComponent<CharacterController>();
|
controller = GetComponent<CharacterController>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Start () {
|
|
||||||
skeletonAnimation.AnimationState.Event += HandleEvent;
|
|
||||||
}
|
|
||||||
|
|
||||||
void HandleEvent (Spine.TrackEntry trackEntry, Spine.Event e) {
|
|
||||||
if (e.Data.Name == footstepEventName) {
|
|
||||||
footstepAudioSource.Stop();
|
|
||||||
footstepAudioSource.pitch = GetRandomPitch(0.2f);
|
|
||||||
footstepAudioSource.Play();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static float GetRandomPitch (float maxOffset) {
|
|
||||||
return 1f + Random.Range(-maxOffset, maxOffset);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Update () {
|
void Update () {
|
||||||
|
float dt = Time.deltaTime;
|
||||||
|
bool isGrounded = controller.isGrounded;
|
||||||
|
bool landed = !wasGrounded && isGrounded;
|
||||||
|
|
||||||
|
// Dummy input.
|
||||||
input.x = Input.GetAxis(XAxis);
|
input.x = Input.GetAxis(XAxis);
|
||||||
input.y = Input.GetAxis(YAxis);
|
input.y = Input.GetAxis(YAxis);
|
||||||
bool crouching = (controller.isGrounded && input.y < -0.5f) || (forceCrouchEndTime > Time.time);
|
bool inputJumpStop = Input.GetButtonUp(JumpButton);
|
||||||
velocity.x = 0;
|
bool inputJumpStart = Input.GetButtonDown(JumpButton);
|
||||||
float dt = Time.deltaTime;
|
bool doCrouch = (isGrounded && input.y < -0.5f) || (forceCrouchEndTime > Time.time);
|
||||||
|
bool doJumpInterrupt = false;
|
||||||
|
bool doJump = false;
|
||||||
|
bool hardLand = false;
|
||||||
|
|
||||||
if (!crouching) {
|
if (landed) {
|
||||||
if (Input.GetButtonDown(JumpButton) && controller.isGrounded) {
|
if (-velocity.y > forceCrouchVelocity) {
|
||||||
jumpAudioSource.Stop();
|
hardLand = true;
|
||||||
jumpAudioSource.Play();
|
doCrouch = true;
|
||||||
velocity.y = jumpSpeed;
|
forceCrouchEndTime = Time.time + forceCrouchDuration;
|
||||||
jumpEndTime = Time.time + jumpDuration;
|
|
||||||
} else {
|
|
||||||
jumpInterrupt |= Time.time < jumpEndTime && Input.GetButtonUp(JumpButton);
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!doCrouch) {
|
||||||
|
if (isGrounded) {
|
||||||
|
if (inputJumpStart) {
|
||||||
|
doJump = true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
doJumpInterrupt = inputJumpStop && Time.time < minimumJumpEndTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dummy physics and controller using UnityEngine.CharacterController.
|
||||||
|
Vector3 gravityDeltaVelocity = Physics.gravity * gravityScale * dt;
|
||||||
|
|
||||||
|
|
||||||
|
if (doJump) {
|
||||||
|
velocity.y = jumpSpeed;
|
||||||
|
minimumJumpEndTime = Time.time + minimumJumpDuration;
|
||||||
|
} else if (doJumpInterrupt) {
|
||||||
|
if (velocity.y > 0)
|
||||||
|
velocity.y *= jumpInterruptFactor;
|
||||||
|
}
|
||||||
|
|
||||||
|
velocity.x = 0;
|
||||||
|
if (!doCrouch) {
|
||||||
if (input.x != 0) {
|
if (input.x != 0) {
|
||||||
velocity.x = Mathf.Abs(input.x) > 0.6f ? runSpeed : walkSpeed;
|
velocity.x = Mathf.Abs(input.x) > 0.6f ? runSpeed : walkSpeed;
|
||||||
velocity.x *= Mathf.Sign(input.x);
|
velocity.x *= Mathf.Sign(input.x);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jumpInterrupt) {
|
|
||||||
if (velocity.y > 0) {
|
|
||||||
velocity.y = Mathf.MoveTowards(velocity.y, 0, dt * jumpInterruptFactor);
|
|
||||||
} else {
|
|
||||||
jumpInterrupt = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var gravityDeltaVelocity = Physics.gravity * gravityScale * dt;
|
|
||||||
|
if (!isGrounded) {
|
||||||
if (controller.isGrounded) {
|
|
||||||
jumpInterrupt = false;
|
|
||||||
} else {
|
|
||||||
if (wasGrounded) {
|
if (wasGrounded) {
|
||||||
if (velocity.y < 0)
|
if (velocity.y < 0)
|
||||||
velocity.y = 0;
|
velocity.y = 0;
|
||||||
@ -149,38 +146,55 @@ namespace Spine.Unity.Examples {
|
|||||||
velocity += gravityDeltaVelocity;
|
velocity += gravityDeltaVelocity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wasGrounded = controller.isGrounded;
|
|
||||||
|
|
||||||
controller.Move(velocity * dt);
|
controller.Move(velocity * dt);
|
||||||
|
|
||||||
if (!wasGrounded && controller.isGrounded) {
|
// Animation
|
||||||
if (-velocity.y > forceCrouchVelocity) {
|
if (isGrounded) {
|
||||||
forceCrouchEndTime = Time.time + forceCrouchDuration;
|
if (doCrouch) {
|
||||||
hardfallAudioSource.Play();
|
targetAnimation = crouch;
|
||||||
} else {
|
|
||||||
footstepAudioSource.Play();
|
|
||||||
}
|
|
||||||
|
|
||||||
landParticles.Emit((int)(velocity.y / -9f) + 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (controller.isGrounded) {
|
|
||||||
if (crouching) {
|
|
||||||
skeletonAnimation.AnimationName = crouchName;
|
|
||||||
} else {
|
} else {
|
||||||
if (input.x == 0)
|
if (input.x == 0)
|
||||||
skeletonAnimation.AnimationName = idleName;
|
targetAnimation = idle;
|
||||||
else
|
else
|
||||||
skeletonAnimation.AnimationName = Mathf.Abs(input.x) > 0.6f ? runName : walkName;
|
targetAnimation = Mathf.Abs(input.x) > 0.6f ? run : walk;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
skeletonAnimation.AnimationName = velocity.y > 0 ? jumpName : fallName;
|
targetAnimation = velocity.y > 0 ? jump : fall;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (previousTargetAnimation != targetAnimation) {
|
||||||
|
if (targetAnimation == run && previousTargetAnimation == fall) {
|
||||||
|
skeletonAnimation.AnimationState.SetAnimation(0, runFromFall, false);
|
||||||
|
skeletonAnimation.AnimationState.AddAnimation(0, run, true, 0f);
|
||||||
|
} else {
|
||||||
|
skeletonAnimation.AnimationState.SetAnimation(0, targetAnimation, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
previousTargetAnimation = targetAnimation;
|
||||||
|
|
||||||
if (input.x != 0)
|
if (input.x != 0)
|
||||||
skeletonAnimation.Skeleton.FlipX = input.x < 0;
|
skeletonAnimation.Skeleton.FlipX = input.x < 0;
|
||||||
|
|
||||||
|
|
||||||
|
// Effects
|
||||||
|
if (doJump) {
|
||||||
|
jumpAudioSource.Stop();
|
||||||
|
jumpAudioSource.Play();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (landed) {
|
||||||
|
if (hardLand) {
|
||||||
|
hardfallAudioSource.Play();
|
||||||
|
} else {
|
||||||
|
footstepHandler.Play();
|
||||||
|
}
|
||||||
|
|
||||||
|
landParticles.Emit((int)(velocity.y / -9f) + 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
wasGrounded = isGrounded;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -70,11 +70,15 @@ namespace Spine.Unity.Examples {
|
|||||||
//bool eventMatch = string.Equals(e.Data.Name, eventName, System.StringComparison.Ordinal); // Testing recommendation: String compare.
|
//bool eventMatch = string.Equals(e.Data.Name, eventName, System.StringComparison.Ordinal); // Testing recommendation: String compare.
|
||||||
bool eventMatch = (eventData == e.Data); // Performance recommendation: Match cached reference instead of string.
|
bool eventMatch = (eventData == e.Data); // Performance recommendation: Match cached reference instead of string.
|
||||||
if (eventMatch) {
|
if (eventMatch) {
|
||||||
audioSource.pitch = basePitch + Random.Range(-randomPitchOffset, randomPitchOffset);
|
Play();
|
||||||
audioSource.clip = audioClip;
|
|
||||||
audioSource.Play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Play () {
|
||||||
|
audioSource.pitch = basePitch + Random.Range(-randomPitchOffset, randomPitchOffset);
|
||||||
|
audioSource.clip = audioClip;
|
||||||
|
audioSource.Play();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4d8ca989b59d9c74f9b9d98e63993b0a
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1524005971
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: attack
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: attack
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a7f08ab57415c7548a57933fe9332cf0
|
||||||
|
timeCreated: 1524005971
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: crouch
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: crouch
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 25961ff211f6f3947be85f8aab3f2630
|
||||||
|
timeCreated: 1524005971
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: fall
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: fall
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 29c1381a00cfb2c4d996f2a02fcc4506
|
||||||
|
timeCreated: 1524005971
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: head-turn
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: head-turn
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f6af3927c87714243a26ccb72d39d4fc
|
||||||
|
timeCreated: 1524005972
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: idle
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: idle
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8e32f0310bb5c02488c5c002dd41e7cb
|
||||||
|
timeCreated: 1524005972
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: jump
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: jump
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9fc9ad17b39175242a17dedc100251e5
|
||||||
|
timeCreated: 1524005972
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: run-from fall
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: run-from fall
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fcca5e996ae24ba43baaaadef1fb6ad9
|
||||||
|
timeCreated: 1524005972
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: run
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: run
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cc83238c61de380499565292bef7ada4
|
||||||
|
timeCreated: 1524005972
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6e3e95a05e4c9774397eeeb7bdee8ccb, type: 3}
|
||||||
|
m_Name: walk
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 2f899e95232e6144786de8fb99678a8d, type: 2}
|
||||||
|
animationName: walk
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 096b05b71bb32cb409c1c8fd233b7ac3
|
||||||
|
timeCreated: 1524005972
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
146
spine-unity/Assets/Spine Examples/Spine/Hero/hero-pro.atlas.txt
Normal file
146
spine-unity/Assets/Spine Examples/Spine/Hero/hero-pro.atlas.txt
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
|
||||||
|
hero-pro.png
|
||||||
|
size: 1024,256
|
||||||
|
format: RGBA8888
|
||||||
|
filter: Linear,Linear
|
||||||
|
repeat: none
|
||||||
|
body
|
||||||
|
rotate: false
|
||||||
|
xy: 324, 81
|
||||||
|
size: 97, 95
|
||||||
|
orig: 97, 95
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
cape
|
||||||
|
rotate: false
|
||||||
|
xy: 176, 88
|
||||||
|
size: 146, 159
|
||||||
|
orig: 146, 159
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
eyes
|
||||||
|
rotate: false
|
||||||
|
xy: 604, 216
|
||||||
|
size: 82, 31
|
||||||
|
orig: 82, 31
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
fingers
|
||||||
|
rotate: false
|
||||||
|
xy: 877, 214
|
||||||
|
size: 31, 33
|
||||||
|
orig: 31, 33
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
foot1
|
||||||
|
rotate: false
|
||||||
|
xy: 743, 205
|
||||||
|
size: 50, 42
|
||||||
|
orig: 50, 42
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
foot2
|
||||||
|
rotate: false
|
||||||
|
xy: 688, 209
|
||||||
|
size: 53, 38
|
||||||
|
orig: 53, 38
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
forearm1
|
||||||
|
rotate: false
|
||||||
|
xy: 795, 198
|
||||||
|
size: 41, 49
|
||||||
|
orig: 41, 49
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
forearm2
|
||||||
|
rotate: false
|
||||||
|
xy: 910, 215
|
||||||
|
size: 31, 32
|
||||||
|
orig: 31, 32
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
hand1
|
||||||
|
rotate: false
|
||||||
|
xy: 838, 199
|
||||||
|
size: 37, 48
|
||||||
|
orig: 37, 48
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
hand2
|
||||||
|
rotate: false
|
||||||
|
xy: 286, 49
|
||||||
|
size: 31, 37
|
||||||
|
orig: 31, 37
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
head
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 74
|
||||||
|
size: 172, 173
|
||||||
|
orig: 172, 173
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
mantles
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 17
|
||||||
|
size: 136, 55
|
||||||
|
orig: 136, 55
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
mouth
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 2
|
||||||
|
size: 61, 13
|
||||||
|
orig: 61, 13
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
shin1
|
||||||
|
rotate: false
|
||||||
|
xy: 482, 119
|
||||||
|
size: 53, 57
|
||||||
|
orig: 53, 57
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
shin2
|
||||||
|
rotate: false
|
||||||
|
xy: 192, 32
|
||||||
|
size: 51, 54
|
||||||
|
orig: 51, 54
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
sword
|
||||||
|
rotate: false
|
||||||
|
xy: 324, 178
|
||||||
|
size: 216, 69
|
||||||
|
orig: 216, 69
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
thigh1
|
||||||
|
rotate: false
|
||||||
|
xy: 542, 184
|
||||||
|
size: 60, 63
|
||||||
|
orig: 60, 63
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
thigh2
|
||||||
|
rotate: false
|
||||||
|
xy: 423, 112
|
||||||
|
size: 57, 64
|
||||||
|
orig: 57, 64
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
upper-arm1
|
||||||
|
rotate: false
|
||||||
|
xy: 140, 16
|
||||||
|
size: 50, 56
|
||||||
|
orig: 50, 56
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
upper-arm2
|
||||||
|
rotate: false
|
||||||
|
xy: 245, 27
|
||||||
|
size: 39, 59
|
||||||
|
orig: 39, 59
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d7e3bd7e6f971cb428513ebf424e0846
|
||||||
|
timeCreated: 1524005968
|
||||||
|
licenseType: Free
|
||||||
|
TextScriptImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
4599
spine-unity/Assets/Spine Examples/Spine/Hero/hero-pro.json
Normal file
4599
spine-unity/Assets/Spine Examples/Spine/Hero/hero-pro.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 33cbc24302a26c1438b20d9253eee469
|
||||||
|
timeCreated: 1524005968
|
||||||
|
licenseType: Free
|
||||||
|
TextScriptImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
spine-unity/Assets/Spine Examples/Spine/Hero/hero-pro.png
Normal file
BIN
spine-unity/Assets/Spine Examples/Spine/Hero/hero-pro.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 25b07e861d1a62f4db687c871e4a3828
|
||||||
|
timeCreated: 1524005969
|
||||||
|
licenseType: Free
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 4
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
platformSettings:
|
||||||
|
- buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: a6b194f808b1af6499c93410e504af42, type: 3}
|
||||||
|
m_Name: hero-pro_Atlas
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
atlasFile: {fileID: 4900000, guid: d7e3bd7e6f971cb428513ebf424e0846, type: 3}
|
||||||
|
materials:
|
||||||
|
- {fileID: 2100000, guid: 9aa2023c2c91b254f9cb0a4fba19af00, type: 2}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8384ab388a4037649a1f64fb2e1a8e7f
|
||||||
|
timeCreated: 1524005968
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_Name: hero-pro_Material
|
||||||
|
m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 25b07e861d1a62f4db687c871e4a3828, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats:
|
||||||
|
- _Cutoff: 0.1
|
||||||
|
m_Colors: []
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9aa2023c2c91b254f9cb0a4fba19af00
|
||||||
|
timeCreated: 1524005968
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f1b3b4b945939a54ea0b23d3396115fb, type: 3}
|
||||||
|
m_Name: hero-pro_SkeletonData
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
atlasAssets:
|
||||||
|
- {fileID: 11400000, guid: 8384ab388a4037649a1f64fb2e1a8e7f, type: 2}
|
||||||
|
scale: 0.01
|
||||||
|
skeletonJSON: {fileID: 4900000, guid: 33cbc24302a26c1438b20d9253eee469, type: 3}
|
||||||
|
fromAnimation:
|
||||||
|
- fall
|
||||||
|
- run-from fall
|
||||||
|
- fall
|
||||||
|
- idle
|
||||||
|
toAnimation:
|
||||||
|
- run-from fall
|
||||||
|
- run
|
||||||
|
- crouch
|
||||||
|
- crouch
|
||||||
|
duration:
|
||||||
|
- 0.05
|
||||||
|
- 0
|
||||||
|
- 0
|
||||||
|
- 0
|
||||||
|
defaultMix: 0.1
|
||||||
|
controller: {fileID: 0}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2f899e95232e6144786de8fb99678a8d
|
||||||
|
timeCreated: 1524005968
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -290,7 +290,6 @@ namespace Spine.Unity.Editor {
|
|||||||
setTextureImporterSettings = EditorGUILayout.Toggle(new GUIContent("Apply Atlas Texture Settings", "Apply the recommended settings for Texture Importers."), showHierarchyIcons);
|
setTextureImporterSettings = EditorGUILayout.Toggle(new GUIContent("Apply Atlas Texture Settings", "Apply the recommended settings for Texture Importers."), showHierarchyIcons);
|
||||||
if (EditorGUI.EndChangeCheck()) {
|
if (EditorGUI.EndChangeCheck()) {
|
||||||
EditorPrefs.SetBool(SET_TEXTUREIMPORTER_SETTINGS_KEY, showHierarchyIcons);
|
EditorPrefs.SetBool(SET_TEXTUREIMPORTER_SETTINGS_KEY, showHierarchyIcons);
|
||||||
SpineEditorHierarchyHandler.HierarchyIconsOnPlaymodeStateChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorGUILayout.LabelField("Editor Instantiation", EditorStyles.boldLabel);
|
EditorGUILayout.LabelField("Editor Instantiation", EditorStyles.boldLabel);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user