mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[unity] Minor formatting changes.
This commit is contained in:
parent
549052e087
commit
7d8c2a8771
@ -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)
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user