ImportOptionsclass

Import options, remembered between uses. Add a property here to add a setting to the dialog.

object→ImportOptions
Namespace
global
Assembly
Sandbox.Tools
Declaration
public class Editor.CreateModelFromMeshDialog.ImportOptions

Constructors1

Showing 1 constructors

Properties7

Showing 7 properties

public bool Editor.CreateModelFromMeshDialog.ImportOptions.GenerateMaterials { get; set; }PUBLICGETSET

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..)

Returns:bool—

public string Editor.CreateModelFromMeshDialog.ImportOptions.GlobalMaterial { get; set; }PUBLICGETSET

Material to override every material on the model with. Leave empty to use a default placeholder white material

Returns:string—

On this page