onAssetChanged method

  1. @override
void onAssetChanged(
  1. String path
)
override

A file changed on disk: the pictures that show it are drawn again, and open workspaces read it again (a parent, a map, a layer).

Implementation

@override
void onAssetChanged(String path) {
  _pictures?.forget(path);
  _pictures2D?.forget(path);
  maps.forget(path);
  // A scene or prefab: what is drawn with a 2-D material, read again.
  if (path.endsWith('.json')) Material2DUsers.forget(_root, path);
  _changes.add(path);
}