View Spine-Special-Skeleton-Grayscale.shader
// - Unlit | |
// - Premultiplied Alpha Blending (Optional straight alpha input) | |
// - Double-sided, no depth | |
Shader "Spine/Special/Skeleton Grayscale" { | |
Properties { | |
_GrayPhase ("Phase", Range(0, 1)) = 1 | |
[NoScaleOffset] _MainTex ("MainTex", 2D) = "white" {} | |
_Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 | |
[Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 |
View SkeletonAutoreset.cs
using UnityEngine; | |
using System.Collections; | |
public class SkeletonAutoreset : MonoBehaviour { | |
void Start () { | |
var skeletonAnimation = GetComponent<SkeletonAnimation>(); | |
if (skeletonAnimation == null) { | |
Debug.Log("SkeletonAutoreset uses GetComponent and needs to be attached on the same GameObject as the SkeletonAnimation component."); | |
return; |
View SampleManualUpdate.cs
using UnityEngine; | |
using System.Collections.Generic; | |
namespace Spine.Unity.Examples { | |
public class SampleManualUpdate : MonoBehaviour { | |
[Range(0f, 1/8f)] | |
[Tooltip("To specify a framerate, type 1/framerate in the inspector text box.")] | |
public float timeBetweenFrames = 1f/24f; //24 fps | |
public List<SkeletonAnimation> components; |
View Spine-SkeletonSpriteMaskable.shader
Shader "Spine/Skeleton SpriteMaskable" { | |
Properties { | |
_Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 | |
[NoScaleOffset] _MainTex ("Main Texture", 2D) = "black" {} | |
_StencilRef ("Stencil Reference", Float) = 1.0 | |
_StencilComp ("Stencil Compare", Float) = 4.0 // For float values, see https://docs.unity3d.com/Manual/SL-Stencil.html under "Comparison Function" heading | |
} | |
SubShader { | |
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } |
View RuntimeAssets.cs
using UnityEngine; | |
using System.Collections.Generic; | |
namespace Spine.Unity { | |
public static class RuntimeAssets { | |
public static AtlasAsset CreateAtlasAsset (TextAsset atlasText, Material[] materials, bool initialize) { | |
AtlasAsset atlasAsset = ScriptableObject.CreateInstance<AtlasAsset>(); | |
atlasAsset.Reset(); | |
atlasAsset.atlasFile = atlasText; |
View SkeletonGraphic.cs
/****************************************************************************** | |
* Spine Runtimes Software License | |
* Version 2.3 | |
* | |
* Copyright (c) 2013-2015, Esoteric Software | |
* All rights reserved. | |
* | |
* You are granted a perpetual, non-exclusive, non-sublicensable and | |
* non-transferable license to use, install, execute and perform the Spine | |
* Runtimes Software (the "Software") and derivative works solely for personal |
View Atlas.cs
/****************************************************************************** | |
* Spine Runtimes Software License v2.5 | |
* | |
* Copyright (c) 2013-2016, Esoteric Software | |
* All rights reserved. | |
* | |
* You are granted a perpetual, non-exclusive, non-sublicensable, and | |
* non-transferable license to use, install, execute, and perform the Spine | |
* Runtimes software and derivative works solely for personal or internal | |
* use. Without the written permission of Esoteric Software (see Section 2 of |
View SpineRootMotion.cs
/****************************************************************************** | |
* Spine Runtimes Software License v2.5 | |
* | |
* Copyright (c) 2013-2016, Esoteric Software | |
* All rights reserved. | |
* | |
* You are granted a perpetual, non-exclusive, non-sublicensable, and | |
* non-transferable license to use, install, execute, and perform the Spine | |
* Runtimes software and derivative works solely for personal or internal | |
* use. Without the written permission of Esoteric Software (see Section 2 of |
View AnimationState.cs
/****************************************************************************** | |
* Spine Runtimes Software License | |
* Version 2.3 | |
* | |
* Copyright (c) 2013-2015, Esoteric Software | |
* All rights reserved. | |
* | |
* You are granted a perpetual, non-exclusive, non-sublicensable and | |
* non-transferable license to use, install, execute and perform the Spine | |
* Runtimes Software (the "Software") and derivative works solely for personal |
View BlendModeMaterialsAsset.cs
/****************************************************************************** | |
* Spine Runtimes Software License v2.5 | |
* | |
* Copyright (c) 2013-2016, Esoteric Software | |
* All rights reserved. | |
* | |
* You are granted a perpetual, non-exclusive, non-sublicensable, and | |
* non-transferable license to use, install, execute, and perform the Spine | |
* Runtimes software and derivative works solely for personal or internal | |
* use. Without the written permission of Esoteric Software (see Section 2 of |
NewerOlder