Upload project files

This commit is contained in:
Misaki
2024-09-16 00:08:10 +09:00
commit 0a4745662a
218 changed files with 13387 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using System;
using UnityEngine;
namespace Misaki.ArtTool
{
[Serializable]
public class InputObjectData
{
public GameObject gameObject;
public uint frequency = 1;
private Mesh _mesh;
public Mesh Mesh
{
get
{
if (_mesh == null)
{
_mesh = gameObject.GetComponentInChildren<MeshFilter>().sharedMesh;
}
return _mesh;
}
}
private Material _material;
public Material Material
{
get
{
if (_material == null)
{
_material = gameObject.GetComponentInChildren<MeshRenderer>().sharedMaterial;
_material.enableInstancing = true;
}
return _material;
}
}
}
}