"mesh setter script"
xxxxxxxxxx
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
public class MeshSetterScript : MonoBehaviour
{
public MeshCutter cutter;
public ARMeshManager meshManager;
private void Start()
{
meshManager.meshesChanged = setMeshes;
}
void setMeshes(ARMeshesChangedEventArgs args)
{
cutter.meshes = meshManager.meshes.ToArray();
}
}