使用Shader实现序列帧动画
Shader "Unlit/ShaderAni"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {
}
_Speed("动画播放速度",float)=10
_RowCount("行(贴图有几行?)",int)=4
_ColCount("列(贴图有几列?)",int)=4
}
SubShader
{
Tags {
"RenderType"="Opaque" }
LOD 100
Pass
{