How to add properties to a collada.scene?

Hello,

I want to use a collada.scene and add properties on it like an object or an object3D with userData but I did not figure it out.

How can I do that ?

Thank you.

Try it like demonstrated in this fiddle: https://jsfiddle.net/1pavbfoe/1/

collada.scene is of type THREE.Group. So you can use .userDate in order to store custom properties.

2 Likes

Thanks a lot !
It works !