Set default value for Vec3 attribute

Hi,

How do I set the default value of a Vec3 attribute?

What I would like to do is this:

Builder.attributes.add('size', {type: 'vec3', title: 'Size', default: pc.Vec3(4, 5, 6)});

But it doesn’t seem to work. No default value is set in the editor.

Builder.attributes.add('Size', {type: 'vec3', default: [0, 0, 0], title: 'Size', description: ''});
1 Like

Thanks, that solved my problem.