[SOLVED] Custom UserData

Hey Guys,
I thought I could use any Object for the UserData to supply but according to UserData.java they can only be String, Float, Int and Boolean (because of the Serialization with write I suppose).

Is there a way I could set my class as UserData? (I don’t need the write() method)

Implement Savable.

http://javadoc.jmonkeyengine.org/com/jme3/export/Savable.html

1 Like

Thanks :slight_smile: