s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Api
Editor Classes
ImportOptions
chevron_left Editor Classes
class
ImportOptions

Constructors

functionsImportOptions

Properties

data_objectCollisiondata_objectGenerateMaterialsdata_objectGlobalMaterialdata_objectGlobalMaterialOverridedata_objectImportScaledata_objectMaterialShaderdata_objectUnits
ImportOptions
Import options, remembered between uses. Add a property here to add a setting to the dialog.
class Editor.CreateModelFromMeshDialog .
Sandbox.Tools

build Constructors 1

ImportOptions ()

data_object Properties 7

Collision
CollisionMode
GenerateMaterials
bool
Try generating materials for each material slot in the model. Textures must be named after the name of a material slot, otherwise it will be left empty and material won't be generated. Texture name suffix must match whatever name is expected by the shader (_color, _normal, etc..)
GlobalMaterial
string
Material to override every material on the model with. Leave empty to use a default placeholder white material
GlobalMaterialOverride
bool
Add a material group that overrides every material on the model
ImportScale
float
MaterialShader
string
Which shader should be used for generated materials
Units
ScaleUnit
Unit presets, derived from Editor.CreateModelFromMeshDialog.ImportOptions.ImportScale - same conversions ModelDoc uses.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter