mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +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) {
|
foreach (var kvp in skinAttachments) {
|
||||||
var newAttachment = kvp.Value.GetClone(true);
|
var newAttachment = kvp.Value.GetClone(true);
|
||||||
if (IsRenderable(newAttachment)) {
|
if (IsRenderable(newAttachment)) {
|
||||||
|
|
||||||
var region = newAttachment.GetAtlasRegion();
|
var region = newAttachment.GetAtlasRegion();
|
||||||
int existingIndex;
|
int existingIndex;
|
||||||
if (existingRegions.TryGetValue(region, out existingIndex)) {
|
if (existingRegions.TryGetValue(region, out existingIndex)) {
|
||||||
@ -498,7 +499,6 @@ namespace Spine.Unity.Modules.AttachmentTools {
|
|||||||
var r = s.textureRect;
|
var r = s.textureRect;
|
||||||
var spritePixels = spriteTexture.GetPixels((int)r.x, (int)r.y, (int)r.width, (int)r.height);
|
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);
|
var newTexture = new Texture2D((int)r.width, (int)r.height, textureFormat, mipmaps);
|
||||||
|
|
||||||
newTexture.SetPixels(spritePixels);
|
newTexture.SetPixels(spritePixels);
|
||||||
|
|
||||||
if (applyImmediately)
|
if (applyImmediately)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
Shader "Spine/Special/SkeletonGhost" {
|
Shader "Spine/Special/SkeletonGhost" {
|
||||||
Properties {
|
Properties {
|
||||||
_Color ("Main Color", Color) = (1,1,1,1)
|
_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
|
_TextureFade ("Texture Fade Out", Range(0,1)) = 0
|
||||||
}
|
}
|
||||||
SubShader {
|
SubShader {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user