ソースを参照

[unity] Minor formatting changes.

pharan 8 年 前
コミット
7d8c2a8771

+ 1 - 1
spine-unity/Assets/spine-unity/Modules/AttachmentTools/AttachmentTools.cs

@@ -413,6 +413,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
 			foreach (var kvp in skinAttachments) {
 				var newAttachment = kvp.Value.GetClone(true);
 				if (IsRenderable(newAttachment)) {
+
 					var region = newAttachment.GetAtlasRegion();
 					int existingIndex;
 					if (existingRegions.TryGetValue(region, out existingIndex)) {
@@ -498,7 +499,6 @@ namespace Spine.Unity.Modules.AttachmentTools {
 			var r = s.textureRect;
 			var spritePixels = spriteTexture.GetPixels((int)r.x, (int)r.y, (int)r.width, (int)r.height);
 			var newTexture = new Texture2D((int)r.width, (int)r.height, textureFormat, mipmaps);
-
 			newTexture.SetPixels(spritePixels);
 
 			if (applyImmediately)

+ 1 - 1
spine-unity/Assets/spine-unity/Modules/Ghost/Shaders/Spine-Special-Skeleton-Ghost.shader

@@ -5,7 +5,7 @@
 Shader "Spine/Special/SkeletonGhost" {
     Properties {
 		_Color ("Main Color", Color) = (1,1,1,1)
-		_MainTex ("Base (RGB) Alpha (A)", 2D) = "white" {}
+		[NoScaleOffset] _MainTex ("Base (RGB) Alpha (A)", 2D) = "white" {}
 		_TextureFade ("Texture Fade Out", Range(0,1)) = 0
     }
     SubShader {