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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte
getObjectType
(Object type) getValue()
void
read
(JmeImporter im) toString()
void
write
(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 newUserData
with 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:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-