推进度!

This commit is contained in:
SoulliesOfficial
2025-11-25 21:49:03 -05:00
parent f0c06f0337
commit ad4948207e
1068 changed files with 418853 additions and 1047 deletions

View File

@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace SpriteShadersUltimate.Demo
{
public class Demo_VectorFollow : MonoBehaviour
{
//Public:
public string propertyName;
public Transform trackedTransform;
//Internal:
Material mat;
void Start()
{
Renderer renderer = GetComponentInChildren<Renderer>();
if(renderer.sharedMaterial.name.EndsWith("(Instance)"))
{
mat = renderer.sharedMaterial;
}
else
{
mat = renderer.material;
}
}
void FixedUpdate()
{
mat.SetVector(propertyName, trackedTransform.position);
}
}
}