public LoziMeshCollection(GameObject obj) { meshObjects = new List <LoziMesh>(); foreach (Transform transform in obj.GetComponentsInChildren <Transform>()) { Mesh mesh = LoziMesh.getMesh(transform.gameObject); if (mesh != null && canAddInArray(mesh)) { meshObjects.Add(new LoziMesh(transform.gameObject)); } } }
public LoziMesh getMeshByGameObject(GameObject obj) { return(getMeshByMesh(LoziMesh.getMesh(obj))); }