/** * Called when probuilder changes geometry or the probuilder selection changes. Invalidates in-progress change * checks on the modified objects to ensure updates are atomic. * * @param pb_Object[] objects that changed. */ private static void OnGeometryChange(pb_Object[] objects) { if (objects != null) // sometimes this is null, not sure why... { foreach (pb_Object obj in objects) { SceneFusionAPI.InvalidateChangeCheck(obj); } } }
/** * Called when probuilder builds a mesh. Invalidates in-progress change checks on the modified object to ensure * updates are atomic. * * @param pb_Object obj whose mesh was built. * @param Mesh mesh that was built. */ private static void OnMeshCompiled(pb_Object obj, Mesh mesh) { SceneFusionAPI.InvalidateChangeCheck(obj); }