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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic bytegetObjectType(Object type) getValue()voidread(JmeImporter im) toString()voidwrite(JmeExporter ex)
-
Field Details
-
JME_PHYSICSIGNORE
Boolean type on Geometries to indicate that physics collision shape generation should ignore them.- See Also:
-
JME_SHAREDMESH
For geometries using shared mesh, this will specify the shared mesh reference.- See Also:
-
type
protected byte type -
value
-
-
Constructor Details
-
UserData
public UserData() -
UserData
Creates 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 interfaceSavable- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Throws:
IOException
-