if(aux != null)
{
MeshUtility.Combine.MeshInstance instance = new MeshUtility.Combine.MeshInstance();
instance.mesh = aux;
instance.subMeshIndex = 0;
instance.transform = transform.worldToLocalMatrix * obj.transform.localToWorldMatrix;
instancesList.Add(instance);
I’m annoyed by this error. It involves the “mesh”. It didn’t recognize my references.I’m new to C# coding, I could be coding wrong, Idk. Here’s the code.Line 3 is where the error is located.There’s also another with this problem:
if(aux != null)
{
MeshUtility.Combine.MeshInstance instance = new MeshUtility.Combine.MeshInstance();
instance.mesh = aux;
instance.subMeshIndex = 0;
instance.transform = transform.worldToLocalMatrix * obj.transform.localToWorldMatrix;
instancesList.Add(instance);