SpriteRendererTextureSwap.

Texture Property

Summary

The replacement for the original UnityEngine.Sprite.texture.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
SpriteRendererTextureSwap

Syntax

public Texture2D Texture { get; set; }

Remarks

If this texture has any UnityEngine.Sprites set up in its import settings, they will be completely ignored because this system creates new UnityEngine.Sprites at runtime. The texture doesn't even need to be set to UnityEngine.Sprite mode.

Call Animancer.SpriteRendererTextureSwap.ClearCache before setting this if you want to destroy any sprites created for the previous texture.

Value

Type Description
Texture2D