Files
CartoonRPG/Assets/StixGames/GrassShader/Scripts/TextureUpdater.cs
Caleb Sandford deQuincey 02c4b5ab66 Adding in new packages
2025-06-05 22:59:18 +01:00

26 lines
514 B
C#

using UnityEngine;
namespace StixGames.GrassShader
{
[AddComponentMenu("Stix Games/Deprecated/Texture Updater")]
public class TextureUpdater : MonoBehaviour
{
public Texture2D targetTexture;
private bool apply;
void LateUpdate()
{
if (apply)
{
targetTexture.Apply(false);
apply = false;
}
}
public void RequestTextureUpdate()
{
apply = true;
}
}
}