Package net.risingworld.api.assets
Class ModelImportSettings
java.lang.Object
net.risingworld.api.assets.Asset
net.risingworld.api.assets.ModelImportSettings
You can use this object to get more control over the import settings for models. This
is only relevant when loading models from the hard drive (or from raw data).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
static enum
static enum
Nested classes/interfaces inherited from class net.risingworld.api.assets.Asset
Asset.Source, Asset.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
int
int
float
float
Fields inherited from class net.risingworld.api.assets.Asset
DEFAULT_EXTENSION
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelImportSettings
Creates a new model import settings object.boolean
boolean
boolean
void
setAnimationSetting
(ModelImportSettings.AnimationImportFlags flag, boolean set) void
void
setMaterialSetting
(ModelImportSettings.MaterialImportFlags flag, boolean set) void
void
setModelSetting
(ModelImportSettings.MeshImportFlags flag, boolean set) void
Methods inherited from class net.risingworld.api.assets.Asset
dispose, equals, getChecksum, getDependency, getExtension, getHandle, getPath, getSource, getType, hashCode, isDisposed
-
Field Details
-
meshScaleFactor
public float meshScaleFactor -
meshPivot
-
meshNormalSmoothingAngle
public float meshNormalSmoothingAngle -
meshImportFlags
public int meshImportFlags -
animationType
-
animationWrapMode
-
animationImportFlags
public int animationImportFlags -
maxTextureResolution
public int maxTextureResolution -
materialFlags
public int materialFlags
-
-
Method Details
-
create
Creates a new model import settings object. It gives you more control when loading a model (e.g an FBX file) from the hard drive.- Parameters:
name
- a name to identify this settings instance.- Returns:
- a new settings asset instance.
-
setModelSetting
-
getModelSetting
-
setModelSettings
-
setAnimationSettings
-
setAnimationSetting
-
getAnimationSetting
-
setMaterialSettings
-
setMaterialSetting
-
getMaterialSetting
-