Hi Everyone,
I want to store Boxtest1, Boxtest2, Boxtest3 in the array without clicking on a specific object, how do I modify it?
option.onClick(function () {
var object = editor.selected;
if (object === null) {
alert('No object selected');
return;
}
var output = object.toJSON();
try {
output = JSON.stringify(output, parseNumber, '\t');
output = output.replace(/[\n\t]+([\d\.e\-\[\]]+)/g, '$1');
} catch (e) {
output = JSON.stringify(output);
}
In addition, I want to know how to get the list of objects in the scene in the upper right corner.