- Home /
Question by
raze incorporated · Nov 18, 2013 at 11:51 PM ·
errornewcs0246
error CS0246 type or namespace missing...
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);
Comment
Answer by cmpgk1024 · Nov 18, 2013 at 11:54 PM
MeshUtility is in the namespace UnityEditor, so add using UnityEditor
.
Note: I found this in seconds by googling "MeshUtility Unity." Please do some research before you ask.