Firstborn/Assets/AwesomeTechnologies/VegetationStudioPro/Runtime/GrassSystem/GrassPatch/WindBaker.cs

22 lines
502 B
C#
Raw Permalink Normal View History

using UnityEngine;
namespace AwesomeTechnologies.Grass
{
public class WindBaker : MonoBehaviour
{
public Mesh Mesh;
public Vector3 Rotation;
public AnimationCurve BendCurve = new AnimationCurve();
// ReSharper disable once UnusedMember.Local
void Reset()
{
MeshFilter meshFilter = GetComponent<MeshFilter>();
if (meshFilter)
{
Mesh = meshFilter.sharedMesh;
}
}
}
}