Files
Convention-Unity-Demo/Assets/Plugins/GridShader/Demo/ZoomOverTime.cs

15 lines
313 B
C#
Raw Normal View History

2025-09-25 19:04:05 +08:00
using UnityEngine;
namespace Ogxd
{
public class ZoomOverTime : MonoBehaviour
{
public float speedFactor = 1f;
public Material material;
void Update()
{
material.SetFloat("_Scale", Mathf.Exp((speedFactor * Time.timeSinceLevelLoad) % 10));
}
}
}