Firstborn/Assets/AwesomeTechnologies/VegetationStudioPro/Runtime/VegetationSystemPro/VegetationItemInstanceInfo.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

24 lines
808 B
C#

using AwesomeTechnologies.Vegetation.Masks;
using AwesomeTechnologies.VegetationSystem;
using UnityEngine;
namespace AwesomeTechnologies.Vegetation
{
public class VegetationItemInstanceInfo : MonoBehaviour
{
public string VegetationItemInstanceID;
public Vector3 Position;
public Vector3 Scale;
public Quaternion Rotation;
public string VegetationItemID;
public VegetationType VegetationType;
public void MaskVegetationItem()
{
GameObject vegetationItemMaskObject = new GameObject { name = "VegetationItemMask - " + name };
vegetationItemMaskObject.transform.position = Position;
vegetationItemMaskObject.AddComponent<VegetationItemMask>().SetVegetationItemInstanceInfo(this);
}
}
}