I am in doubt if this is correct? (have already been looking at:
So trying:
app.assets.loadFromUrlAndFilename(self.url, null, "container", function (err, asset) {
console.log("FileSize: "+ asset.file.size);
// Add the loaded scene to the hierarchy
self.entity.addComponent('model', {
asset: asset.resource.model,
material: self.app.assets.get(30625063).resource
});
- where the output is ‘FileSize: undefined’.
Going a bit further:
app.assets.loadFromUrlAndFilename(self.url, null, "container", function (err, asset) {
// Add the loaded scene to the hierarchy
self.entity.addComponent('model', {
asset: asset.resource.model,
material: self.app.assets.get(30625063).resource,
file: file.size
});
console.log("FileSize: "+ file.size);
- which fails (even before webupload :-/ )