Package com.jme3.scene
Class UserData
java.lang.Object
com.jme3.scene.UserData
- All Implemented Interfaces:
- Savable
UserData is used to contain user data objects
 set on spatials (primarily primitives) that do not implement
 the Savable interface. Note that attempting
 to export any models which have non-savable objects
 attached to them will fail.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic bytegetObjectType(Object type) getValue()voidread(JmeImporter im) toString()voidwrite(JmeExporter ex) 
- 
Field Details- 
JME_PHYSICSIGNOREBoolean type on Geometries to indicate that physics collision shape generation should ignore them.- See Also:
 
- 
JME_SHAREDMESHFor geometries using shared mesh, this will specify the shared mesh reference.- See Also:
 
- 
typeprotected byte type
- 
value
 
- 
- 
Constructor Details- 
UserDatapublic UserData()
- 
UserDataCreates a newUserDatawith the given type and value.- Parameters:
- type- Type of data, should be between 0 and 8.
- value- Value of the data
 
 
- 
- 
Method Details- 
getValue
- 
toString
- 
getObjectType
- 
write- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
 
-