Hi, Sorry, no cat. :-( After downloading latest Spine Runtime I get this error : Assets/Spine/src/SkeletonJson.cs(162,102): error CS0103: The name `scale' does not exist in the current context
if (root.ContainsKey("transform")) {
foreach (Dictionary<String, Object> transformMap in (List<Object>)root["ik"]) {
TransformConstraintData transformConstraintData = new TransformConstraintData((String)transformMap["name"]);
String boneName = (String)transformMap["bone"];
transformConstraintData.target = skeletonData.FindBone(boneName);
if (transformConstraintData.target == null) throw new Exception("Bone not found: " + boneName);
String targetName = (String)transformMap["target"];
transformConstraintData.target = skeletonData.FindBone(targetName);
if (transformConstraintData.target == null) throw new Exception("Target bone not found: " + targetName);
transformConstraintData.translateMix = GetFloat(transformMap, "translateMix", 1);
transformConstraintData.x = GetFloat(transformMap, "x", 0) * scale;
transformConstraintData.y = GetFloat(transformMap, "y", 0) * scale;
skeletonData.transformConstraints.Add(transformConstraintData);
}
}
17 Feb 2016 3:08 am
Also there is warning :
Script 'Animation' has the same name as built-in Unity component.
AddComponent and GetComponent will not work with this script.
Can you please fix it? Rename that class to SpineAnimation?
Loading Image