/// <summary> /// Add or update mesh for this instance /// </summary> /// <param name="name">Mesh name</param> /// <param name="path">Original path of resource</param> /// <param name="mesh">Mesh to add</param> public void AddMesh(string name, string path, LiveMesh mesh) { Definition.MeshPaths[name] = path; Meshes[name] = mesh; }
/// <summary> /// Add cached mesh /// </summary> /// <param name="path">Path to use</param> /// <param name="mesh">Mesh to add</param> public void AddMesh(string path, LiveMesh mesh) => _meshes.Add(path, mesh);