[unity] Minor formatting changes.

This commit is contained in:
pharan 2017-05-15 12:49:23 +08:00
parent 549052e087
commit 7d8c2a8771
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 {