reload method

void reload(
  1. String path
)

A file changed on disk: the material files and maps, the shapes' textures and the skybox read from it are read again — what they were is drawn until they arrive. (A model is read again by Graphics3DModels.reload.)

Implementation

void reload(String path) {
  materials.reload(path);
  shapes.reloadTexture(path);
  // Built again at the next frame, from the new file.
  if (path.isNotEmpty && path == _mapSkybox) _mapSkybox = '';
}