Class UserData

java.lang.Object
com.jme3.scene.UserData
All Implemented Interfaces:
Savable

public final class UserData extends Object implements 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 Details

    • JME_PHYSICSIGNORE

      public static final String JME_PHYSICSIGNORE
      Boolean type on Geometries to indicate that physics collision shape generation should ignore them.
      See Also:
    • JME_SHAREDMESH

      public static final String JME_SHAREDMESH
      For geometries using shared mesh, this will specify the shared mesh reference.
      See Also:
    • type

      protected byte type
    • value

      protected Object value
  • Constructor Details

    • UserData

      public UserData()
    • UserData

      public UserData(byte type, Object value)
      Creates a new UserData with the given type and value.
      Parameters:
      type - Type of data, should be between 0 and 8.
      value - Value of the data
  • Method Details