Spatial's setserData()

What does the method, Spatial’s setUserData does, and what is it for? I’d appreciate an example, thanks!

it just stores abitrary data and is not used by the core, however can make stuff easier in games.

Eg you could store some kind of data from an external system in it.

1 Like
@Empire Phoenix said: it just stores abitrary data and is not used by the core, however can make stuff easier in games.

Eg you could store some kind of data from an external system in it.

How can I retrieve the data from it?

Nevermind.