Class SpriteSkin
Deforms the Sprite that is currently assigned to the SpriteRenderer in the same GameObject
Implements
ISerializationCallbackReceiver
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: UnityEngine.U2D.Animation
Assembly: solution.dll
Syntax
[Preserve]
[ExecuteInEditMode]
[DefaultExecutionOrder(-1)]
[DisallowMultipleComponent]
[RequireComponent(typeof(SpriteRenderer))]
[AddComponentMenu("2D Animation/Sprite Skin")]
[MovedFrom("UnityEngine.U2D.Experimental.Animation")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.animation@7.0/manual/SpriteSkin.html")]
public sealed class SpriteSkin : MonoBehaviour, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
alwaysUpdate | Determines if the SpriteSkin executes even if the associated SpriteRenderer has been culled from view. |
boneTransforms | Returns the Transform Components that is used for deformation. Do not modify elements of the returned array. |
rootBone | Returns the Transform Component that represents the root bone for deformation |
Methods
Name | Description |
---|---|
GetDeformedVertexPositionData() | Gets an enumerable to iterate through all deformed vertex positions of this SpriteSkin. |
GetDeformedVertexTangentData() | Gets an enumerable to iterate through all deformed vertex tangents of this SpriteSkin. |
HasCurrentDeformedVertices() | Returns whether this SpriteSkin has currently deformed vertices. |
OnAfterDeserialize() | Called after object is deserialized. |
OnBeforeSerialize() | Called before object is serialized. |