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 enumstatic enumstatic enumstatic enumstatic enumstatic enumNested classes/interfaces inherited from class net.risingworld.api.assets.Asset
Asset.Source, Asset.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionintintintintfloatfloatFields inherited from class net.risingworld.api.assets.Asset
DEFAULT_EXTENSION -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelImportSettingsCreates a new model import settings object.booleanbooleanbooleanvoidsetAnimationSetting(ModelImportSettings.AnimationImportFlags flag, boolean set) voidvoidsetMaterialSetting(ModelImportSettings.MaterialImportFlags flag, boolean set) voidvoidsetModelSetting(ModelImportSettings.MeshImportFlags flag, boolean set) voidMethods 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
-