Pular para o conteúdo principal

Kit material

252 ferramentas. Gerado a partir do código-fonte do plugin; não edite manualmente.

As descrições das ferramentas e dos argumentos são exibidas em inglês porque espelham o schema das ferramentas (o mesmo texto que o agente recebe em tools/list).

Guia​

Everything needed to author materials from an agent: create the asset, build the expression graph, expose parameters, derive instances, package logic into material functions, stack material layers (UE 5) and generate complete materials from a single call with the recipes.

Class map​

ClassWhat it covers
UUeaKit_Materialthe Material asset: creation, domain/blend/shading settings, usage flags, compile + statistics, textures, hierarchy, validation, expression-class discovery, graph JSON export
UUeaKit_MaterialGraphthe expression graph: list/find/move/delete nodes, connections, comments, every typed material.add_* factory, material.build_graph, parameter declarations
UUeaKit_MaterialInstanceMaterial Instance Constants: parameter overrides, base-property overrides, hierarchy, batch edits
UUeaKit_MaterialFunctionMaterial Functions: inputs/outputs, the exposed library, function instances, extraction and inlining
UUeaKit_MaterialLayersmaterial layers and layer blends (UE 5.0+, hidden on 4.27)
UUeaKit_MaterialRecipesone-call builders: PBR, emissive, masked, glass, decal, UI, post-process, water, landscape, checker, ...

All six share the kit name material, so edit.enable_kits {"kits":["material"]} exposes the lot.

Start here​

  1. material.list_recipes — see what can be built in one call.
  2. material.recipe_pbr {"folder":"/Game/Materials","name":"M_Rock","baseColor":"/Game/Tex/T_Rock_BC","normal":"/Game/Tex/T_Rock_N","roughness":"/Game/Tex/T_Rock_R","parameterize":true} creates a compiled, parameterised material and returns the node map.
  3. material.create_instance {"parent":"/Game/Materials/M_Rock","folder":"/Game/Materials","name":"MI_RockMossy","scalars":[{"name":"Roughness","value":0.8}]}.
  4. Need something custom? material.get_graph to see the current state, then material.build_graph to author nodes and links declaratively, then material.compile.

Recipe workflow (fastest path)​

Every recipe accepts either folder + name (creates the asset) or material (fills an existing one, clearing its graph first). parameterize: true (default) turns the inputs into material parameters in the group given by group, so one base material plus instances covers all variants.

material.recipe_checker {"folder":"/Game/Dev","name":"M_Checker","scale":16}
material.recipe_emissive {"folder":"/Game/FX","name":"M_Glow","color":{"r":0,"g":0.7,"b":1},"intensity":8,"pulse":2}
material.recipe_masked {"folder":"/Game/Foliage","name":"M_Leaf","texture":"/Game/Tex/T_Leaf","foliage":true}
material.recipe_from_texture_folder {"textureFolder":"/Game/Tex/Rock","folder":"/Game/Materials","name":"M_Rock","dryRun":true}

The reply's nodes maps a role (baseColor, normal, roughness, emissive, ...) to the expression object name, so follow-up edits can address the nodes directly.

Graph workflow​

  • Identify a node by its object name (MaterialExpressionMultiply_3), its description (set it with desc when creating, or material.set_node_desc), a #index, or a parameter name. Descriptions are the most readable and survive renames.
  • material.build_graph is the batch form: nodes[] with a local id and a kind (Multiply, TextureSample, ScalarParameter, ... — the class name without the MaterialExpression prefix), links[] with from/output/to/input. to may be a node id or a material property name (BaseColor, Roughness, EmissiveColor, OpacityMask, Normal, WorldPositionOffset, AmbientOcclusion, Refraction, PixelDepthOffset, CustomizedUV0..7, SubsurfaceColor, ...).
  • material.connect {"target":..., "node":"Mul", "to":"BaseColor"} for a property, "to":"OtherNode.A" for an expression input. material.connect_many batches them.
  • material.add_node is the escape hatch for any class the typed factories do not cover; use material.list_expression_classes / material.get_expression_class_info to discover names, pins and editable properties first.
  • material.arrange_nodes tidies the layout, material.add_comment_around documents a cluster.

Compiling​

Node tools do not recompile (compile defaults to false): shader compilation is the slow part. Batch the edits and call material.compile once. material.get_stats reads the current statistics without recompiling; material.get_compile_errors reports the per-expression errors of the last compile. On UE 4.27 RecompileMaterial returns nothing, so errors comes back empty there even when the material fails — check material.validate as well.

Instances​

  • material.get_instance returns every parameter with its value, the parent value and an overridden flag: the one call an agent needs before changing anything.
  • material.set_scalar / set_vector / set_texture / set_static_switch fail with E_NOT_FOUND when the name is not a parameter of the parent, which is the usual typo signal.
  • material.set_instance_overrides handles blend mode, shading model, two-sided, dithered LOD, opacity mask clip value and shadow flags. Pass "inherit" to drop an override.
  • Bulk work: material.create_instance_variants, material.batch_set_scalar, material.batch_set_texture, material.batch_reparent, material.copy_parameters.

Functions and the library​

material.create_function declares inputs and outputs in one call; the function's graph is then edited with the same node tools by passing the function asset as target. material.add_function_input and material.add_function_output add more declarations. material.list_function_library and material.list_engine_functions are the palette an agent can call from material.add_function_call. material.function_from_nodes extracts a selection of a material's expressions into a new function (and replaces them with a call); material.inline_function_call does the reverse.

Layers (UE 5.0+)​

material.create_layer / material.create_layer_blend make the assets, material.add_material_attribute_layers_node puts the stack host into a material, then material.set_layers / add_layer / remove_layer / reorder_layer / set_layer_visible edit the stack. Layer index 0 is the background layer and has no blend. On UE 4.27 these tools are not advertised at all.

Gotchas​

  • Compile cost. Keep compile: false on node tools; one material.compile at the end.
  • Sampler types. material.add_texture_sample with samplerType: "auto" derives the type from the texture. A normal map sampled as color compiles but looks wrong — material.get_texture_samplers lists the mismatches.
  • Parameter names are unique per material. Two declarations with the same name are a compile error; material.validate reports them as duplicate_parameter.
  • 4.27 vs 5.1+ input storage is transparent. The kit hides UMaterialEditorOnlyData, so "to":"BaseColor" works identically on both engines. Property names that only exist on one engine (RefractionMethod, outputTranslucentVelocity, Substrate) return E_NOT_SUPPORTED.
  • Named reroutes need UE 5.0. On 4.27 use material.add_reroute.
  • Math ops differ per engine. material.add_math accepts length, exp, log, modulo only from UE 5.x; on 4.27 the call returns E_NOT_SUPPORTED with the list of known operations.
  • material.clear_graph and material.delete_nodes are destructive and break every link that touched the removed expressions. Export first with material.export_graph if in doubt.
  • Names with spaces work for expression inputs ("to":"Blend.Layer Grass"); quote them in JSON as usual.

Ferramentas​

Legenda. risco 0 = somente leitura, 1 = operação inofensiva do editor, 2 = altera asset, 3 = apaga/substitui asset, 4 = projeto/config/build, 5 = potencialmente destrutivo (chamadas acima de MaxAutoRisk exigem "_confirm": true). altera = roda numa transação (edit.undo reverte). requer PIE / requer mundo = recusado sem sessão PIE / sem nível aberto. requer plugin = indisponível quando o plugin está desativado. dryRun = aceita o argumento dryRun. smoke = coberto por edit.self_test.

material.add_actor_position (risco 2, altera, smoke)​

Adds an Actor Position (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_blackbody (risco 2, altera, smoke)​

Adds a Blackbody node (colour of a temperature in kelvin).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_bump_offset (risco 2, altera, smoke)​

Adds a Bump Offset (parallax) node.

ArgumentoTipoDescrição
heightRationumberPadrão 0.05.
referencePlanenumberPadrão 0.5.

Retorna: node, target, errors.

material.add_camera_position (risco 2, altera, smoke)​

Adds a Camera Position (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_camera_vector (risco 2, altera, smoke)​

Adds a Camera Vector node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_collection_parameter (risco 2, altera)​

Adds a Material Parameter Collection parameter node. SmokeSkip: it needs a Material Parameter Collection asset, which the sandbox does not provide.

ArgumentoTipoDescrição
collectionstringobrigatório. Material Parameter Collection asset.
namestringobrigatório. Parameter name inside the collection.

Retorna: node, target, errors.

material.add_comment (risco 2, altera, smoke)​

Adds a comment box to a graph.

ArgumentoTipoDescrição
targetstringobrigatório.
textstringobrigatório.
xintegerPadrão 0.
yintegerPadrão 0.
widthintegerPadrão 400.
heightintegerPadrão 200.
colorUeaMatColor

Retorna: comment.

material.add_comment_around (risco 2, altera, smoke)​

Adds a comment box sized to enclose the given expressions.

ArgumentoTipoDescrição
targetstringobrigatório.
textstringobrigatório.
nodesarray of stringobrigatório. Expressions to enclose.
paddingintegerExtra margin in graph units (default 40). Padrão 40.
colorUeaMatColor

Retorna: comment.

material.add_component_mask (risco 2, altera, smoke)​

Adds a Component Mask node.

ArgumentoTipoDescrição
rbooleanPadrão true.
gbooleanPadrão false.
bbooleanPadrão false.
abooleanPadrão false.

Retorna: node, target, errors.

material.add_constant (risco 2, altera, smoke)​

Adds a scalar constant.

ArgumentoTipoDescrição
valuenumberPadrão 0.0.

Retorna: node, target, errors.

material.add_constant2 (risco 2, altera, smoke)​

Adds a two-component constant.

ArgumentoTipoDescrição
rnumberPadrão 0.0.
gnumberPadrão 0.0.

Retorna: node, target, errors.

material.add_constant3 (risco 2, altera, smoke)​

Adds a three-component (colour) constant.

ArgumentoTipoDescrição
colorUeaMatColor

Retorna: node, target, errors.

material.add_constant4 (risco 2, altera, smoke)​

Adds a four-component constant.

ArgumentoTipoDescrição
colorUeaMatColor

Retorna: node, target, errors.

material.add_curve_atlas_row_parameter (risco 2, altera, smoke)​

Adds a Curve Atlas Row Parameter node (the atlas and curve assets are optional).

ArgumentoTipoDescrição
namestringobrigatório.
atlasstringCurve Atlas asset.
curvestringCurve Linear Color asset inside the atlas.
groupstring

Retorna: node, target, errors.

material.add_custom (risco 2, altera, smoke)​

Adds a Custom HLSL node with named inputs and an output type.

ArgumentoTipoDescrição
codestringobrigatório. HLSL body; it must return a value of the declared output type.
outputTypestringfloat (default) / float2 / float3 / float4 / material_attributes.
inputsarray of stringInput names.
descriptionstringCaption of the node.
additionalOutputsarray of UeaMatCustomOutputExtra named outputs.
includesarray of string.ush files to include (5.x).
definesarray of UeaKeyValuePreprocessor defines as name=value pairs (5.x).

Retorna: node, target, errors.

material.add_ddx (risco 2, altera, smoke)​

Adds a DDX node (screen-space horizontal derivative).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_ddy (risco 2, altera, smoke)​

Adds a DDY node (screen-space vertical derivative).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_depth_fade (risco 2, altera, smoke)​

Adds a Depth Fade node.

ArgumentoTipoDescrição
fadeDistancenumberPadrão 100.0.
opacitynumberPadrão 1.0.

Retorna: node, target, errors.

material.add_depth_of_field_function (risco 2, altera, smoke)​

Adds a Depth Of Field Function node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_desaturation (risco 2, altera, smoke)​

Adds a Desaturation node with luminance weights.

ArgumentoTipoDescrição
luminanceFactorsUeaMatColorLuminance weights (default 0.3/0.59/0.11).

Retorna: node, target, errors.

material.add_distance_to_nearest_surface (risco 2, altera, smoke)​

Adds a Distance To Nearest Surface node (needs distance fields).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_dynamic_parameter (risco 2, altera, smoke)​

Adds a Dynamic Parameter node (four named channels driven by the particle system).

ArgumentoTipoDescrição
namesarray of stringNames of the four parameter channels.
indexintegerPadrão 0.

Retorna: node, target, errors.

material.add_eye_adaptation (risco 2, altera, smoke)​

Adds an Eye Adaptation node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_feature_level_switch (risco 2, altera, smoke)​

Adds a Feature Level Switch node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_fresnel (risco 2, altera, smoke)​

Adds a Fresnel node.

ArgumentoTipoDescrição
exponentnumberPadrão 5.0.
baseReflectFractionnumberPadrão 0.04.

Retorna: node, target, errors.

material.add_function_call (risco 2, altera, smoke)​

Adds a Material Function Call node bound to a function asset.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset, e.g. "/Engine/Functions/Engine_MaterialFunctions02/Utility/BlendAngleCorrectedNormals".

Retorna: node, target, errors.

material.add_function_input (risco 2, altera, smoke)​

Adds a Function Input node (material functions only).

ArgumentoTipoDescrição
namestringobrigatório.
typestringscalar / vector2 / vector3 / vector4 / texture2d / texture_cube / texture2d_array / volume_texture / static_bool / material_attributes / bool.
previewValueUeaMatColorPreview value used while editing the function.
sortPriorityintegerPadrão 32.
usePreviewValueAsDefaultbooleanMake the preview value the default when the input is left unconnected. Padrão false.
descriptionstring

Retorna: node, target, errors.

material.add_function_output (risco 2, altera, smoke)​

Adds a Function Output node (material functions only).

ArgumentoTipoDescrição
namestringobrigatório.
sortPriorityintegerPadrão 32.
descriptionstring

Retorna: node, target, errors.

material.add_function_to_library (risco 2, altera, smoke)​

Exposes a function in the material palette under the given categories (shortcut for set_function_settings).

ArgumentoTipoDescrição
functionstringobrigatório.
descriptionstring
exposeToLibrarystring"true" / "false"; empty keeps the current state.
categoriesarray of string

Retorna: asset, description, exposeToLibrary, libraryCategories, inputs, outputs, nodeCount, users.

material.add_if (risco 2, altera, smoke)​

Adds an If node (branch on a comparison).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_landscape_coords (risco 2, altera, smoke)​

Adds a Landscape Layer Coords node (world-aligned landscape UVs).

ArgumentoTipoDescrição
mappingScalenumberPadrão 1.0.
mappingTypestringauto / xy / xz / yz.

Retorna: node, target, errors.

material.add_landscape_layer_blend (risco 2, altera, smoke)​

Adds a Landscape Layer Blend node with its layer list.

ArgumentoTipoDescrição
layersarray of UeaMatLandscapeLayerobrigatório.

Retorna: node, target, errors.

material.add_landscape_layer_sample (risco 2, altera, smoke)​

Adds a Landscape Layer Sample node.

ArgumentoTipoDescrição
layerNamestringobrigatório.
previewWeightnumberPadrão 1.0.
previewUsedbooleanPreview the "used" branch of a layer switch (default true). Padrão true.

Retorna: node, target, errors.

material.add_landscape_layer_switch (risco 2, altera, smoke)​

Adds a Landscape Layer Switch node.

ArgumentoTipoDescrição
layerNamestringobrigatório.
previewWeightnumberPadrão 1.0.
previewUsedbooleanPreview the "used" branch of a layer switch (default true). Padrão true.

Retorna: node, target, errors.

material.add_landscape_layer_weight (risco 2, altera, smoke)​

Adds a Landscape Layer Weight node.

ArgumentoTipoDescrição
layerNamestringobrigatório.
previewWeightnumberPadrão 1.0.
previewUsedbooleanPreview the "used" branch of a layer switch (default true). Padrão true.

Retorna: node, target, errors.

material.add_layer (risco 2, altera, UE 5.0+, smoke)​

Appends one layer (and its blend) to the stack of a material.

ArgumentoTipoDescrição
targetstringobrigatório.
layerstringMaterial layer function asset.
blendstringBlend function asset.
namestringDisplay name.

Retorna: layers, total, node.

material.add_material_attribute_layers_node (risco 2, altera, UE 5.0+, smoke)​

Adds a Material Attribute Layers expression to a material (the node that hosts the layer stack).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_material_attributes_node (risco 2, altera, smoke)​

Adds a Make / Break / Set / Get Material Attributes node.

ArgumentoTipoDescrição
kindstringobrigatório. make / break / set / get.
attributesarray of stringAttribute names for the set/get variants ("BaseColor", "Roughness", ...).

Retorna: node, target, errors.

material.add_math (risco 2, altera, smoke)​

Adds a math expression by operation name (multiply, lerp, clamp, dot, append, ...).

ArgumentoTipoDescrição
opstringobrigatório. add, subtract, multiply, divide, lerp, power, clamp, one_minus, saturate, abs, sine, cosine, frac, floor, ceil, round, truncate, step, smoothstep, min, max, dot, cross, normalize, append, sqrt, distance, fmod, sign, arctangent, arctangent2, desaturation, if (5.x also exposes length, exp, log, log2, log10).
constAnumberConstant fallback of the A input, when the expression has one. Padrão 0.0.
constBnumberConstant fallback of the B input, when the expression has one. Padrão 1.0.

Retorna: node, target, errors.

material.add_named_reroute (risco 2, altera, UE 5.0+, smoke)​

Adds a named reroute declaration; usages reference it by name.

ArgumentoTipoDescrição
namestringobrigatório. Name of the reroute variable.

Retorna: node, target, errors.

material.add_named_reroute_usage (risco 2, altera, UE 5.0+, smoke)​

Adds a usage of an existing named reroute declaration.

ArgumentoTipoDescrição
namestringobrigatório. Name of the reroute variable.

Retorna: node, target, errors.

material.add_node (risco 2, altera, smoke)​

Adds any material expression class by name, optionally setting properties on it. The escape hatch for anything the typed factories do not cover.

ArgumentoTipoDescrição
classstringobrigatório. Expression class or short alias ("Multiply", "TextureSample", "MaterialExpressionFresnel").
propertiesarray of UeaKeyValueProperties to set on the new expression.

Retorna: node, target, errors.

material.add_noise (risco 2, altera, smoke)​

Adds a Noise node (procedural noise).

ArgumentoTipoDescrição
scalenumberPadrão 1.0.
qualityintegerPadrão 1.
functionstringsimplex / gradient / fast_gradient / value / voronoi.
levelsintegerPadrão 6.
turbulencebooleanPadrão true.

Retorna: node, target, errors.

material.add_object_orientation (risco 2, altera, smoke)​

Adds an Object Orientation node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_object_position (risco 2, altera, smoke)​

Adds an Object Position (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_object_scale (risco 2, altera, smoke)​

Adds an Object Bounds node: the world-space bounds of the object, which is how a material reads an object's scale (there is no dedicated ObjectScale expression; that one is a material function).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_panner (risco 2, altera, smoke)​

Adds a Panner node (scrolls UVs over time).

ArgumentoTipoDescrição
speedXnumberPadrão 0.0.
speedYnumberPadrão 0.0.

Retorna: node, target, errors.

material.add_particle_color (risco 2, altera, smoke)​

Adds a Particle Color node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_particle_macro_uv (risco 2, altera, smoke)​

Adds a Particle Macro UV node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_particle_position_ws (risco 2, altera, smoke)​

Adds a Particle Position (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_particle_radius (risco 2, altera, smoke)​

Adds a Particle Radius node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_particle_subuv (risco 2, altera, smoke)​

Adds a Particle SubUV node (sprite sheet sampling).

ArgumentoTipoDescrição
texturestring
blendbooleanPadrão true.

Retorna: node, target, errors.

material.add_per_instance_custom_data (risco 2, altera, smoke)​

Adds a Per Instance Custom Data node reading one float slot.

ArgumentoTipoDescrição
indexintegerIndex or slot (per-instance custom data index, light index, dynamic-parameter index). Padrão 0.

Retorna: node, target, errors.

material.add_per_instance_fade_amount (risco 2, altera, smoke)​

Adds a Per Instance Fade Amount node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_per_instance_random (risco 2, altera, smoke)​

Adds a Per Instance Random node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_pixel_depth (risco 2, altera, smoke)​

Adds a Pixel Depth node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_pixel_normal_ws (risco 2, altera, smoke)​

Adds a Pixel Normal (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_previous_frame_switch (risco 2, altera, smoke)​

Adds a Previous Frame Switch node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_quality_switch (risco 2, altera, smoke)​

Adds a Quality Switch node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_ray_tracing_quality_switch (risco 2, altera, smoke)​

Adds a Ray Tracing Quality Switch node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_reflection_vector (risco 2, altera, smoke)​

Adds a Reflection Vector (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_reroute (risco 2, altera, smoke)​

Adds a reroute node (a pass-through used to tidy long wires).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_rotator (risco 2, altera, smoke)​

Adds a Rotator node (rotates UVs over time).

ArgumentoTipoDescrição
centerXnumberPadrão 0.5.
centerYnumberPadrão 0.5.
speednumberPadrão 0.25.

Retorna: node, target, errors.

material.add_runtime_virtual_texture_sample (risco 2, altera, smoke)​

Adds a Runtime Virtual Texture Sample node.

ArgumentoTipoDescrição
virtualTexturestringRuntime Virtual Texture asset (optional).
materialTypestringbase_color / base_color_normal_roughness / base_color_normal_specular / world_height / ...

Retorna: node, target, errors.

material.add_scalar_parameter (risco 2, altera, smoke)​

Adds a scalar parameter with a group, default and slider range.

ArgumentoTipoDescrição
namestringobrigatório.
defaultValuenumberPadrão 0.0.
groupstring
minnumberPadrão 0.0.
maxnumberPadrão 1.0.
sortPriorityintegerPadrão 32.

Retorna: node, target, errors.

material.add_scene_color (risco 2, altera, smoke)​

Adds a Scene Color node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_scene_depth (risco 2, altera, smoke)​

Adds a Scene Depth node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_scene_texture (risco 2, altera, smoke)​

Adds a Scene Texture node (post-process domain).

ArgumentoTipoDescrição
idstringScene texture id, e.g. "PostProcessInput0", "SceneColor", "SceneDepth", "WorldNormal".
filteredbooleanPadrão false.

Retorna: node, target, errors.

material.add_screen_position (risco 2, altera, smoke)​

Adds a Screen Position node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_shading_path_switch (risco 2, altera, smoke)​

Adds a Shading Path Switch node (deferred / forward / mobile).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_sky_atmosphere_light_direction (risco 2, altera, smoke)​

Adds a Sky Atmosphere Light Direction node.

ArgumentoTipoDescrição
indexintegerIndex or slot (per-instance custom data index, light index, dynamic-parameter index). Padrão 0.

Retorna: node, target, errors.

material.add_sphere_mask (risco 2, altera, smoke)​

Adds a Sphere Mask node.

ArgumentoTipoDescrição
attenuationRadiusnumberPadrão 256.0.
hardnessPercentnumberPadrão 100.0.

Retorna: node, target, errors.

material.add_static_bool (risco 2, altera, smoke)​

Adds a static bool constant.

ArgumentoTipoDescrição
defaultValuebooleanPadrão true.

Retorna: node, target, errors.

material.add_static_switch (risco 2, altera, smoke)​

Adds a static switch (compile-time branch driven by a static bool).

ArgumentoTipoDescrição
defaultValuebooleanPadrão true.

Retorna: node, target, errors.

material.add_static_switch_parameter (risco 2, altera, smoke)​

Adds a static switch parameter (compile-time branch exposed to instances).

ArgumentoTipoDescrição
namestringobrigatório.
defaultValuebooleanPadrão true.
groupstring

Retorna: node, target, errors.

material.add_texture_coordinate (risco 2, altera, smoke)​

Adds a Texture Coordinate node with a UV channel and tiling.

ArgumentoTipoDescrição
indexintegerUV channel (default 0). Padrão 0.
uTilingnumberPadrão 1.0.
vTilingnumberPadrão 1.0.

Retorna: node, target, errors.

material.add_texture_object (risco 2, altera, smoke)​

Adds a Texture Object node (a texture reference passed into a material function).

ArgumentoTipoDescrição
texturestringTexture asset, e.g. "/Engine/EngineResources/DefaultTexture".
samplerTypestringauto (from the texture) / color / linear_color / normal / masks / alpha / grayscale / linear_grayscale / distance_field / virtual_color / virtual_normal / virtual_masks.
mipValueModestringnone / mip_level / mip_bias / derivative.
uvNodestringExpression to plug into the Coordinates input.

Retorna: node, target, errors.

material.add_texture_object_parameter (risco 2, altera, smoke)​

Adds a Texture Object Parameter node.

ArgumentoTipoDescrição
namestringobrigatório.
groupstring

Retorna: node, target, errors.

material.add_texture_parameter (risco 2, altera, smoke)​

Adds a Texture Sample Parameter (a texture slot instances can override).

ArgumentoTipoDescrição
namestringobrigatório.
groupstring

Retorna: node, target, errors.

material.add_texture_property (risco 2, altera, smoke)​

Adds a Texture Property node (texture size or texel size).

ArgumentoTipoDescrição
texturestringTexture asset to read the property from.
propertystringtexture_size (default) or texel_size.

Retorna: node, target, errors.

material.add_texture_sample (risco 2, altera, smoke)​

Adds a Texture Sample node with a texture, sampler type and optional UV source.

ArgumentoTipoDescrição
texturestringTexture asset, e.g. "/Engine/EngineResources/DefaultTexture".
samplerTypestringauto (from the texture) / color / linear_color / normal / masks / alpha / grayscale / linear_grayscale / distance_field / virtual_color / virtual_normal / virtual_masks.
mipValueModestringnone / mip_level / mip_bias / derivative.
uvNodestringExpression to plug into the Coordinates input.

Retorna: node, target, errors.

material.add_time (risco 2, altera, smoke)​

Adds a Time node.

ArgumentoTipoDescrição
ignorePausebooleanPadrão false.
periodnumberPeriod to wrap the time value with (0 = no wrapping). Padrão 0.0.

Retorna: node, target, errors.

material.add_transform (risco 2, altera, smoke)​

Adds a Transform node (converts a vector between tangent/local/world/view spaces).

ArgumentoTipoDescrição
sourcestringtangent / local / world / view / camera / particle (position nodes: local / world / translated_world / view / camera / particle).
destinationstringDestination space, same vocabulary as "source".

Retorna: node, target, errors.

material.add_transform_position (risco 2, altera, smoke)​

Adds a Transform Position node.

ArgumentoTipoDescrição
sourcestringtangent / local / world / view / camera / particle (position nodes: local / world / translated_world / view / camera / particle).
destinationstringDestination space, same vocabulary as "source".

Retorna: node, target, errors.

material.add_two_sided_sign (risco 2, altera, smoke)​

Adds a Two Sided Sign node (+1 on the front face, -1 on the back face).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_vector_noise (risco 2, altera, smoke)​

Adds a Vector Noise node.

ArgumentoTipoDescrição
functionstringcellnoise / perlin_3d / perlin_gradient / perlin_curl / voronoi.

Retorna: node, target, errors.

material.add_vector_parameter (risco 2, altera, smoke)​

Adds a vector (colour) parameter.

ArgumentoTipoDescrição
namestringobrigatório.
colorUeaMatColor
groupstring
sortPriorityintegerPadrão 32.

Retorna: node, target, errors.

material.add_vertex_color (risco 2, altera, smoke)​

Adds a Vertex Color node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_vertex_interpolator (risco 2, altera, smoke)​

Adds a Vertex Interpolator node (moves a computation to the vertex shader).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_vertex_normal_ws (risco 2, altera, smoke)​

Adds a Vertex Normal (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_vertex_tangent_ws (risco 2, altera, smoke)​

Adds a Vertex Tangent (world space) node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_view_size (risco 2, altera, smoke)​

Adds a View Size node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_virtual_texture_feature_switch (risco 2, altera, smoke)​

Adds a Virtual Texture Feature Switch node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.add_world_position (risco 2, altera, smoke)​

Adds a World Position node.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset to add the expression to.
xintegerPadrão 0.
yintegerPadrão 0.
descstringOptional description; it becomes a stable selector for later calls.
compilebooleanRecompile the material afterwards (default false; compile once at the end). Padrão false.

Retorna: node, target, errors.

material.arrange_nodes (risco 2, altera, smoke)​

Auto-arranges the expressions of a material or function graph.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset path / unique name.

Retorna: count, items.

material.batch_reparent (risco 3, altera, smoke)​

Reparents several instances at once.

ArgumentoTipoDescrição
instancesarray of stringobrigatório.
newParentstringobrigatório.

Retorna: count, items.

material.batch_set_scalar (risco 2, altera, smoke)​

Sets the same scalar parameter on every instance of a list or a folder.

ArgumentoTipoDescrição
instancesarray of stringInstances to change; leave empty to use "folder".
folderstringContent folder whose instances are changed.
namestringobrigatório.
valuenumberScalar value (material.batch_set_scalar). Padrão 0.0.
texturestringTexture asset (material.batch_set_texture).

Retorna: count, items.

material.batch_set_texture (risco 2, altera, smoke)​

Sets the same texture parameter on every instance of a list or a folder.

ArgumentoTipoDescrição
instancesarray of stringInstances to change; leave empty to use "folder".
folderstringContent folder whose instances are changed.
namestringobrigatório.
valuenumberScalar value (material.batch_set_scalar). Padrão 0.0.
texturestringTexture asset (material.batch_set_texture).

Retorna: count, items.

material.build_graph (risco 3, altera, smoke)​

Builds a whole expression graph from a node list and a link list in one call; the fastest way to author a material.

ArgumentoTipoDescrição
targetstringobrigatório.
nodesarray of UeaMatBuildNodeobrigatório. Expressions to create.
linksarray of UeaMatLinkLinks between the new nodes and to material properties.
replacebooleanDelete the existing expressions first. Padrão false.
layoutbooleanAuto-arrange the graph afterwards (default true). Padrão true.
compilebooleanRecompile afterwards (default true). Padrão true.

Retorna: nodes, links, comments, nodeCount, linkCount, target.

material.clear_all_parameters (risco 5, altera, destrutivo, smoke)​

Removes every override of an instance.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant asset.

Retorna: parameters, total, overriddenCount.

material.clear_graph (risco 5, altera, destrutivo, smoke)​

Deletes every expression and comment of a graph.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset path / unique name.

Retorna: count, items.

material.clear_parameter (risco 2, altera, smoke)​

Removes one override so the parameter inherits the parent value again.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.

Retorna: parameters, total, overriddenCount.

material.compare_instances (risco 0, smoke)​

Compares the overrides of two instances.

ArgumentoTipoDescrição
astringobrigatório.
bstringobrigatório.

Retorna: identical, differences, onlyInA, onlyInB, sameParent.

material.compile (risco 2, altera, smoke)​

Recompiles a material (or the base material of an instance) and returns the compile errors and the new statistics. Slow: call it once after a batch of graph edits.

ArgumentoTipoDescrição
materialstringobrigatório. Material or material instance asset.

Retorna: errors, warnings, errorCount, stats.

material.connect (risco 2, altera, smoke)​

Connects an expression output to a material property ("BaseColor") or to another expression input ("Node.Input").

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório. Source expression.
outputstringOutput name or index (default the first output).
tostringobrigatório. Material property ("BaseColor", "Roughness", "CustomizedUV0", ...) or "OtherNode.Input".
compilebooleanRecompile after the change (default false). Padrão false.

Retorna: node, target, errors.

material.connect_many (risco 2, altera, smoke)​

Makes several connections in one call; reports the ones that failed.

ArgumentoTipoDescrição
targetstringobrigatório.
linksarray of UeaMatLinkobrigatório.
compilebooleanRecompile after the change (default false). Padrão false.

Retorna: count, items.

material.copy_parameters (risco 2, altera, smoke)​

Copies parameter overrides from one instance (or material) to another.

ArgumentoTipoDescrição
fromstringobrigatório. Source instance or material.
tostringobrigatório. Destination instance.
onlyOverriddenbooleanOnly copy the parameters the source overrides (default true). Padrão true.

Retorna: parameters, total, overriddenCount.

material.create (risco 2, altera, smoke)​

Creates a Material asset with a domain, blend mode and shading model; optionally copies another material as a template. Returns its settings.

ArgumentoTipoDescrição
folderstringobrigatório. Destination content folder, e.g. "/Game/Materials".
namestringobrigatório. Asset name without path.
domainstringsurface (default) / deferred_decal / light_function / volume / post_process / ui / runtime_virtual_texture.
blendModestringopaque (default) / masked / translucent / additive / modulate / alpha_composite / alpha_holdout.
shadingModelstringdefault_lit (default) / unlit / subsurface / preintegrated_skin / clear_coat / subsurface_profile / two_sided_foliage / hair / cloth / eye / single_layer_water / thin_translucent / from_material_expression.
twoSidedbooleanRender both faces. Padrão false.
opacityMaskClipValuenumberAlpha threshold of masked materials (default 0.3333). Padrão 0.3333.
templatestringMaterial to copy the expression graph and settings from.
compilebooleanRecompile after creation (default true). Padrão true.
savebooleanSave the package to disk. Padrão false.

Retorna: asset, settings, connectedProperties, stats, errors.

material.create_function (risco 2, altera, smoke)​

Creates a Material Function with the given input and output declarations, optionally exposing it to the material palette.

ArgumentoTipoDescrição
folderstringobrigatório.
namestringobrigatório.
descriptionstring
exposeToLibrarybooleanPublish the function in the material palette. Padrão false.
libraryCategoriesarray of stringPalette categories when exposed.
inputsarray of UeaMatFunctionParamInput declarations to create.
outputsarray of stringOutput names to create.
savebooleanPadrão false.

Retorna: asset, description, exposeToLibrary, libraryCategories, inputs, outputs, nodeCount, users.

material.create_function_instance (risco 2, altera, smoke)​

Creates a Material Function Instance from a function (or a material layer / layer blend).

ArgumentoTipoDescrição
functionstringobrigatório. Parent material function (or layer / layer blend).
folderstringobrigatório.
namestringobrigatório.
scalarsarray of UeaMatScalarValue
vectorsarray of UeaMatVectorValue
texturesarray of UeaMatTextureValue

Retorna: asset, errors, notes.

material.create_instance (risco 2, altera, smoke)​

Creates a Material Instance Constant from a parent material or instance, applying the given parameter overrides.

ArgumentoTipoDescrição
parentstringobrigatório. Parent material or material instance.
folderstringobrigatório.
namestringobrigatório.
scalarsarray of UeaMatScalarValue
vectorsarray of UeaMatVectorValue
texturesarray of UeaMatTextureValue
switchesarray of UeaMatSwitchValue
compilebooleanUpdate the instance's shaders after the overrides (default true). Padrão true.
savebooleanPadrão false.

Retorna: asset, parent, parentChain, baseMaterial, parameters, overriddenCount, overrides.

material.create_instance_variants (risco 2, altera, smoke)​

Creates several instances of the same parent, one per variant, each with its own overrides.

ArgumentoTipoDescrição
parentstringobrigatório.
folderstringobrigatório.
variantsarray of UeaMatVariantobrigatório.
savebooleanPadrão false.

Retorna: assets, total.

material.create_layer (risco 2, altera, UE 5.0+, smoke)​

Creates a Material Layer function asset.

ArgumentoTipoDescrição
folderstringobrigatório.
namestringobrigatório.
descriptionstring
savebooleanPadrão false.

Retorna: asset, errors, notes.

material.create_layer_blend (risco 2, altera, UE 5.0+, smoke)​

Creates a Material Layer Blend function asset.

ArgumentoTipoDescrição
folderstringobrigatório.
namestringobrigatório.
descriptionstring
savebooleanPadrão false.

Retorna: asset, errors, notes.

material.delete (risco 3, altera, destrutivo, smoke)​

Deletes a material asset. References to it are broken.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: count, items.

material.delete_function (risco 3, altera, destrutivo, smoke)​

Deletes a material function.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: count, items.

material.delete_instance (risco 3, altera, destrutivo, smoke)​

Deletes a material instance.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant asset.

Retorna: count, items.

material.delete_node (risco 3, altera, smoke)​

Deletes one expression and breaks every link that touched it.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório. Expression object name, description, "#index" or parameter name.

Retorna: count, items.

material.delete_nodes (risco 3, altera, destrutivo, smoke)​

Deletes several expressions at once.

ArgumentoTipoDescrição
targetstringobrigatório.
nodesarray of stringobrigatório. Expression selectors.

Retorna: count, items.

material.disconnect (risco 2, altera, smoke)​

Breaks the connection feeding a material property or an expression input.

ArgumentoTipoDescrição
targetstringobrigatório.
tostringobrigatório. Material property ("BaseColor") or "Node.Input".
compilebooleanRecompile after the change (default false). Padrão false.

Retorna: count, items.

material.disconnect_node (risco 2, altera, smoke)​

Breaks every link that reaches or leaves an expression.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
outgoingbooleanAlso unplug the expressions this one feeds (default true). Padrão true.
incomingbooleanAlso unplug this expression's own inputs (default true). Padrão true.

Retorna: count, items.

material.duplicate (risco 2, altera, smoke)​

Duplicates a material into a folder under a new name.

ArgumentoTipoDescrição
materialstringobrigatório. Source asset.
folderstringobrigatório. Destination folder.
namestringobrigatório. Name of the copy.

Retorna: asset, errors, notes.

material.duplicate_function (risco 2, altera, smoke)​

Duplicates a material function.

ArgumentoTipoDescrição
materialstringobrigatório. Source asset.
folderstringobrigatório. Destination folder.
namestringobrigatório. Name of the copy.

Retorna: asset, errors, notes.

material.duplicate_instance (risco 2, altera, smoke)​

Duplicates a material instance.

ArgumentoTipoDescrição
materialstringobrigatório. Source asset.
folderstringobrigatório. Destination folder.
namestringobrigatório. Name of the copy.

Retorna: asset, errors, notes.

material.duplicate_node (risco 2, altera, smoke)​

Duplicates an expression, offset from the original; the copy keeps the property values, not the links.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
offsetXintegerX offset of the copy (default 40). Padrão 40.
offsetYintegerY offset of the copy (default 40). Padrão 40.

Retorna: node, target, errors.

material.export_function_graph (risco 0, smoke)​

Exports a function graph as JSON (same format as material.export_graph).

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: json, nodeCount, linkCount.

material.export_graph (risco 0, smoke)​

Exports the whole expression graph plus the material settings as a JSON document (feed it back to material.import_graph).

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: json, nodeCount, linkCount.

material.find_by_expression_class (risco 0, smoke)​

Materials whose graph contains an expression of a given class.

ArgumentoTipoDescrição
referencestringobrigatório. Texture, function or expression class to look for.
folderstringContent folder to search (default "/Game").
limitintegerMaximum results (default 100). Padrão 100.

Retorna: assets, total.

material.find_by_texture (risco 0, smoke)​

Materials whose graph samples a given texture.

ArgumentoTipoDescrição
referencestringobrigatório. Texture, function or expression class to look for.
folderstringContent folder to search (default "/Game").
limitintegerMaximum results (default 100). Padrão 100.

Retorna: assets, total.

material.find_instances_using_texture (risco 0, smoke)​

Material instances referencing a texture through one of their texture parameters.

ArgumentoTipoDescrição
referencestringobrigatório. Texture, function or expression class to look for.
folderstringContent folder to search (default "/Game").
limitintegerMaximum results (default 100). Padrão 100.

Retorna: assets, total.

material.find_node (risco 0, smoke)​

Searches expressions by description, caption, class or parameter name.

ArgumentoTipoDescrição
targetstringobrigatório.
querystringText matched against the object name, description, caption, class and parameter name.
classstringRestrict to one expression class.
limitintegerPadrão 50.

Retorna: nodes, total, target.

material.function_from_nodes (risco 3, altera)​

Moves a selection of expressions of a material into a new material function, wiring inputs and outputs from the links that crossed the selection. SmokeSkip: it needs an existing multi-node selection in a material, which the sandbox chain only builds in a later class.

ArgumentoTipoDescrição
materialstringobrigatório. Source material.
nodesarray of stringobrigatório. Expressions to move into the function.
folderstringobrigatório.
namestringobrigatório.
replaceWithCallbooleanReplace the extracted expressions with a call to the new function (default true). Padrão true.

Retorna: asset, description, exposeToLibrary, libraryCategories, inputs, outputs, nodeCount, users.

material.get (risco 0, smoke)​

Settings, connected material properties and shader statistics of a material.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: asset, settings, connectedProperties, stats, errors.

material.get_compile_errors (risco 0, smoke)​

Compile errors of a material's current shader map, without triggering a recompile.

ArgumentoTipoDescrição
materialstringobrigatório. Material or material instance asset.

Retorna: errors, warnings, errorCount, stats.

material.get_dynamic_instances (risco 0, requer mundo, smoke)​

Actors of the current level whose components use a dynamic instance created from this material or instance.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: values, total.

material.get_expression_class_info (risco 0, smoke)​

Pins, categories and editable properties of one material expression class.

ArgumentoTipoDescrição
classstringobrigatório. Expression class name or short alias ("Multiply", "MaterialExpressionMultiply").

Retorna: info.

material.get_function (risco 0, smoke)​

Inputs, outputs, node count, library flags and users of a material function.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: asset, description, exposeToLibrary, libraryCategories, inputs, outputs, nodeCount, users.

material.get_function_inputs (risco 0, smoke)​

Input declarations of a material function.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: params, total.

material.get_function_outputs (risco 0, smoke)​

Output declarations of a material function.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: params, total.

material.get_graph (risco 0, smoke)​

Nodes and links of a graph in one payload: the overview an agent needs before editing.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset path / unique name.

Retorna: nodes, links, comments, nodeCount, linkCount, target.

material.get_hierarchy (risco 0, smoke)​

Instances derived from a material, the material functions it calls and the textures it uses.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: instances, functions, textures.

material.get_input_source (risco 0, smoke)​

Expression and output feeding a material property or an expression input.

ArgumentoTipoDescrição
targetstringobrigatório.
tostringobrigatório. Material property ("BaseColor") or "Node.Input".

Retorna: connected, fromNode, fromClass, fromOutput, fromOutputName.

material.get_instance (risco 0, smoke)​

Parent chain, every parameter with its value, its parent value and whether the instance overrides it.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant asset.

Retorna: asset, parent, parentChain, baseMaterial, parameters, overriddenCount, overrides.

material.get_instance_chain (risco 0, smoke)​

Parent chain of an instance, from the instance itself up to the base material.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant asset.

Retorna: chain, baseMaterial.

material.get_instance_overrides (risco 0, smoke)​

Base-property overrides currently active on an instance.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant asset.

Retorna: overrides, active.

material.get_layer_parameters (risco 0, UE 5.0+, smoke)​

Parameters exposed by the layers of a material instance, per layer.

ArgumentoTipoDescrição
instancestringobrigatório.
layerIndexintegerLayer index; negative lists every layer. Padrão -1.

Retorna: parameters, total, overriddenCount.

material.get_layers (risco 0, UE 5.0+, smoke)​

Layer stack of a material (from its layers expression) or of a material instance (from its static parameters).

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Instance that owns the layer stack.

Retorna: layers, total, node.

material.get_node (risco 0, smoke)​

One expression with its position, description, inputs and outputs.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório. Expression object name, description, "#index" or parameter name.

Retorna: node, target, errors.

material.get_node_inputs (risco 0, smoke)​

Input pins of an expression with what feeds them.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório. Expression object name, description, "#index" or parameter name.

Retorna: node, target, errors.

material.get_node_outputs (risco 0, smoke)​

Output pins of an expression.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório. Expression object name, description, "#index" or parameter name.

Retorna: node, target, errors.

material.get_node_property (risco 0, smoke)​

Reads one property of an expression as text.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
propertystringobrigatório. Property name on the expression class, e.g. "Texture", "SamplerType", "ConstCoordinate".
valuestringNew value in text form (numbers, enum names, asset paths).

Retorna: value, overridden, parentValue.

material.get_parameter_info (risco 0, smoke)​

Type, group, sort priority, parent default and override state of one parameter.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.

Retorna: parameter.

material.get_properties_connected (risco 0, smoke)​

Material properties (BaseColor, Roughness, ...) currently driven by an expression.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: values, total.

material.get_scalar (risco 0, smoke)​

Value of one scalar parameter, with the parent value and whether it is overridden.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.

Retorna: value, overridden, parentValue.

material.get_static_switch (risco 0, smoke)​

Value of one static switch parameter.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.

Retorna: value, overridden, parentValue.

material.get_stats (risco 0, smoke)​

Shader instruction counts, sampler and interpolator usage of a material or instance, without recompiling.

ArgumentoTipoDescrição
materialstringobrigatório. Material or material instance asset.

Retorna: stats, material.

material.get_texture (risco 0, smoke)​

Value of one texture parameter.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.

Retorna: value, overridden, parentValue.

material.get_texture_samplers (risco 0, smoke)​

Texture sampler nodes of a material with the sampler type they declare and the one their texture implies.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: samplers, total, mismatchCount.

material.get_vector (risco 0, smoke)​

Value of one vector parameter.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.

Retorna: value, overridden, parentValue.

material.import_function_graph (risco 3, altera)​

Rebuilds a function graph from JSON. SmokeSkip: the argument is a nested JSON document, which cannot be expressed in smoke metadata.

ArgumentoTipoDescrição
materialstringobrigatório.
jsonstringobrigatório. JSON produced by material.export_graph.
replacebooleanDelete the existing expressions first (default true). Padrão true.
compilebooleanRecompile after the import (default true). Padrão true.

Retorna: nodes, links, comments, nodeCount, linkCount, target.

material.import_graph (risco 3, altera)​

Rebuilds a material's graph from a JSON document produced by material.export_graph. SmokeSkip: the argument is a nested JSON document, which cannot be expressed in smoke metadata.

ArgumentoTipoDescrição
materialstringobrigatório.
jsonstringobrigatório. JSON produced by material.export_graph.
replacebooleanDelete the existing expressions first (default true). Padrão true.
compilebooleanRecompile after the import (default true). Padrão true.

Retorna: nodes, links, comments, nodeCount, linkCount, target.

material.inline_function_call (risco 3, altera)​

Expands a Material Function Call node into the calling graph. SmokeSkip: it needs an existing function-call node, which the sandbox chain only creates in a later class.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório. The MaterialFunctionCall expression to expand.

Retorna: nodes, links, comments, nodeCount, linkCount, target.

material.is_connected (risco 0, smoke)​

True when a material property or an expression input is driven by something.

ArgumentoTipoDescrição
targetstringobrigatório.
tostringobrigatório. Material property ("BaseColor") or "Node.Input".

Retorna: value, detail.

material.list (risco 0, smoke)​

Lists Material assets under a folder, filtered by domain, blend mode and name.

ArgumentoTipoDescrição
folderstringContent folder to search (default "/Game").
domainstringOnly materials with this domain.
blendModestringOnly materials with this blend mode.
nameContainsstringName substring filter.
recursivebooleanSearch subfolders (default true). Padrão true.
limitintegerMaximum results (default 200). Padrão 200.

Retorna: assets, total.

material.list_comments (risco 0, smoke)​

Comment boxes of a graph.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset path / unique name.

Retorna: comments, total.

material.list_engine_functions (risco 0, smoke)​

Material functions shipped with the engine, by category (cached asset-registry query).

ArgumentoTipoDescrição
folderstringContent folder (default "/Game").
exposedOnlybooleanOnly functions exposed to the material palette. Padrão false.
categorystringLibrary category filter.
nameContainsstring
recursivebooleanPadrão true.
limitintegerPadrão 200.

Retorna: functions, total, categories.

material.list_expression_classes (risco 0, smoke)​

Every material expression class available on this engine with its pins and editable properties. Use it before material.add_node.

ArgumentoTipoDescrição
nameContainsstringName substring filter (e.g. "texture").
categorystringEditor category filter (e.g. "Math").
limitintegerMaximum results (default 200). Padrão 200.

Retorna: classes, total.

material.list_function_library (risco 0, smoke)​

The material function palette: every exposed function grouped by category, with its inputs and outputs.

ArgumentoTipoDescrição
folderstringContent folder (default "/Game").
exposedOnlybooleanOnly functions exposed to the material palette. Padrão false.
categorystringLibrary category filter.
nameContainsstring
recursivebooleanPadrão true.
limitintegerPadrão 200.

Retorna: functions, total, categories.

material.list_function_users (risco 0, smoke)​

Materials and functions that call a given function.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: assets, total.

material.list_functions (risco 0, smoke)​

Lists Material Function assets under a folder, optionally only the exposed ones.

ArgumentoTipoDescrição
folderstringContent folder (default "/Game").
exposedOnlybooleanOnly functions exposed to the material palette. Padrão false.
categorystringLibrary category filter.
nameContainsstring
recursivebooleanPadrão true.
limitintegerPadrão 200.

Retorna: assets, total.

material.list_instance_parameters (risco 0, smoke)​

Parameters of an instance, optionally only the ones it overrides.

ArgumentoTipoDescrição
instancestringobrigatório.
overriddenOnlybooleanOnly parameters this instance overrides. Padrão false.
typestringOnly parameters of this type (scalar / vector / texture / switch).

Retorna: parameters, total, overriddenCount.

material.list_instances (risco 0, smoke)​

Lists Material Instance Constants, optionally only those derived from a given parent.

ArgumentoTipoDescrição
parentstringOnly instances derived from this material or instance.
folderstringContent folder (default "/Game").
recursivebooleanPadrão true.
includeIndirectbooleanInclude grandchildren of the parent (default true). Padrão true.
limitintegerPadrão 200.

Retorna: assets, total.

material.list_layer_blends (risco 0, UE 5.0+, smoke)​

Lists Material Layer Blend assets under a folder.

ArgumentoTipoDescrição
folderstringContent folder (default "/Game").
exposedOnlybooleanOnly functions exposed to the material palette. Padrão false.
categorystringLibrary category filter.
nameContainsstring
recursivebooleanPadrão true.
limitintegerPadrão 200.

Retorna: assets, total.

material.list_layers (risco 0, UE 5.0+, smoke)​

Lists Material Layer assets under a folder.

ArgumentoTipoDescrição
folderstringContent folder (default "/Game").
exposedOnlybooleanOnly functions exposed to the material palette. Padrão false.
categorystringLibrary category filter.
nameContainsstring
recursivebooleanPadrão true.
limitintegerPadrão 200.

Retorna: assets, total.

material.list_nodes (risco 0, smoke)​

Expressions of a material or function graph, with their pins and connections.

ArgumentoTipoDescrição
targetstringobrigatório.
classFilterstringOnly expressions of this class ("TextureSample", "MaterialExpressionMultiply").
nameContainsstringName/desc/caption substring filter.
limitintegerMaximum results (default 500). Padrão 500.

Retorna: nodes, total, target.

material.list_parameters (risco 0, smoke)​

Parameters declared by a material or material function graph, with group, default and slider range.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset.
typestringOnly parameters of this type (scalar / vector / texture / switch).
groupstringOnly parameters of this group.

Retorna: parameters, total, groups.

material.list_recipes (risco 0, smoke)​

Lists the recipes of this kit with the kind of material each produces.

Sem argumentos.

Retorna: recipes, total.

material.list_textures (risco 0, smoke)​

Textures referenced by a material's graph.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: textures, total.

material.list_usages (risco 0, smoke)​

Every bUsedWith* flag this engine supports and the ones enabled on the material.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: available, enabled.

material.move_node (risco 2, altera, smoke)​

Moves one expression to an absolute graph position.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
xintegerPadrão 0.
yintegerPadrão 0.

Retorna: node, target, errors.

material.move_nodes (risco 2, altera, smoke)​

Moves several expressions (or the whole graph) by a delta.

ArgumentoTipoDescrição
targetstringobrigatório.
nodesarray of stringExpressions to move; empty moves the whole graph.
dxintegerPadrão 0.
dyintegerPadrão 0.

Retorna: count, items.

material.recipe_checker (risco 2, altera, smoke)​

Procedural checkerboard, no textures needed. The quickest sanity-check material.

ArgumentoTipoDescrição
colorAUeaMatColor
colorBUeaMatColor
scalenumberPadrão 8.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_cloth (risco 2, altera, smoke)​

Cloth shading model with a fuzz colour and amount.

ArgumentoTipoDescrição
baseColorstring
baseColorTintUeaMatColor
normalstring
roughnessnumberPadrão 0.5.
subsurfaceColorUeaMatColorSubsurface / fuzz colour depending on the recipe.
amountnumberCloth fuzz amount or subsurface opacity. Padrão 0.5.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_decal (risco 2, altera, smoke)​

Deferred decal material with base colour, normal and opacity.

ArgumentoTipoDescrição
baseColorstring
tintUeaMatColor
normalstring
opacityTexturestringTexture whose alpha drives the decal opacity.
opacitynumberPadrão 1.0.
dbufferbooleanUse a DBuffer decal blend mode. Padrão false.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_dissolve (risco 2, altera, smoke)​

Dissolve effect: a noise source drives an opacity mask with a glowing edge.

ArgumentoTipoDescrição
baseColorstring
baseColorTintUeaMatColor
noiseTexturestringNoise texture; when empty a procedural Noise node is used.
amountnumberInitial dissolve amount (0..1). Padrão 0.5.
edgeColorUeaMatColor
edgeWidthnumberPadrão 0.05.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_emissive (risco 2, altera, smoke)​

Emissive material with an intensity and an optional sine pulse.

ArgumentoTipoDescrição
colorUeaMatColor
intensitynumberPadrão 5.0.
pulsenumberPulse speed; 0 disables the animation. Padrão 0.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_flipbook (risco 2, altera, smoke)​

Flipbook animation over a sprite-sheet texture (columns x rows at a frame rate).

ArgumentoTipoDescrição
texturestring
columnsintegerPadrão 4.
rowsintegerPadrão 4.
fpsnumberPadrão 15.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_from_texture_folder (risco 2, altera, dryRun, smoke)​

Detects a T_*_BC / _N / _ORM / _R texture set in a folder and builds the matching PBR material.

ArgumentoTipoDescrição
textureFolderstringobrigatório. Folder holding the texture set.
nameContainsstringOnly textures whose name contains this.
dryRunbooleanReport the detected mapping without creating anything. Padrão false.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_glass (risco 2, altera, smoke)​

Glass: translucent, low roughness, Fresnel-driven opacity and an index of refraction.

ArgumentoTipoDescrição
tintUeaMatColor
roughnessnumberPadrão 0.05.
iornumberPadrão 1.52.
opacitynumberPadrão 0.1.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_gradient (risco 2, altera, smoke)​

Two-colour gradient along the U or V axis.

ArgumentoTipoDescrição
colorAUeaMatColor
colorBUeaMatColor
axisstringu (default) or v.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_hologram (risco 2, altera, smoke)​

Hologram: translucent scanlines scrolling over an emissive tint.

ArgumentoTipoDescrição
colorUeaMatColor
scanlineDensitynumberPadrão 40.0.
speednumberPadrão 0.5.
opacitynumberPadrão 0.6.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_landscape (risco 2, altera, smoke)​

Landscape material blending several layers with a Landscape Layer Blend node.

ArgumentoTipoDescrição
layersarray of UeaMatRecipeLandscapeLayerobrigatório.
blendTypestringweight (default) / alpha / height.
macroVariationbooleanAdd a large-scale noise variation on top of the blend. Padrão false.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_masked (risco 2, altera, smoke)​

Masked (cutout) material driven by a texture alpha; optionally two-sided foliage.

ArgumentoTipoDescrição
texturestringTexture whose alpha drives the mask (and whose RGB drives base colour).
maskTexturestringSeparate opacity-mask texture.
clipValuenumberPadrão 0.3333.
twoSidedbooleanPadrão true.
foliagebooleanUse the two-sided foliage shading model with this subsurface colour. Padrão false.
subsurfaceColorUeaMatColor

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_panner (risco 2, altera, smoke)​

Scrolling texture (Panner) feeding base colour.

ArgumentoTipoDescrição
texturestring
speedXnumberPadrão 0.1.
speedYnumberPadrão 0.0.
tilingnumberPadrão 1.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_parallax (risco 2, altera, smoke)​

Parallax (bump offset) material using a height texture.

ArgumentoTipoDescrição
baseColorstring
heightstring
normalstring
heightRationumberPadrão 0.05.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_pbr (risco 2, altera, smoke)​

Physically based opaque surface from a texture set (base colour, normal, roughness, metallic, AO, emissive or a packed ORM texture).

ArgumentoTipoDescrição
baseColorstringBase colour texture; empty uses the colour below.
baseColorTintUeaMatColorBase colour when no texture is given.
normalstringNormal map texture.
roughnessstringRoughness texture; empty uses roughnessValue.
roughnessValuenumberPadrão 0.5.
metallicstringMetallic texture; empty uses metallicValue.
metallicValuenumberPadrão 0.0.
aostringAmbient occlusion texture.
emissivestringEmissive texture.
emissiveTintUeaMatColor
emissiveIntensitynumberPadrão 0.0.
packedOrmstringPacked occlusion/roughness/metallic texture (R=AO, G=Roughness, B=Metallic).
tilingnumberUV tiling applied to every texture. Padrão 1.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_post_process (risco 2, altera, smoke)​

Post-process material applying a tint, a desaturation or a vignette.

ArgumentoTipoDescrição
effectstringtint / desaturate / vignette.
colorUeaMatColor
intensitynumberPadrão 1.0.
blendableLocationstringbefore_tonemapping (default) / after_tonemapping / before_translucency / replacing_tonemapper.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_rim_light (risco 2, altera, smoke)​

Base colour plus a Fresnel rim light added to the emissive output.

ArgumentoTipoDescrição
baseColorTintUeaMatColor
rimColorUeaMatColor
exponentnumberPadrão 4.0.
intensitynumberPadrão 2.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_subsurface_skin (risco 2, altera, smoke)​

Subsurface skin material (preintegrated skin shading model).

ArgumentoTipoDescrição
baseColorstring
baseColorTintUeaMatColor
normalstring
roughnessnumberPadrão 0.5.
subsurfaceColorUeaMatColorSubsurface / fuzz colour depending on the recipe.
amountnumberCloth fuzz amount or subsurface opacity. Padrão 0.5.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_translucent (risco 2, altera, smoke)​

Translucent material with a colour, an opacity and an optional Fresnel falloff.

ArgumentoTipoDescrição
colorUeaMatColor
opacitynumberPadrão 0.5.
fresnelbooleanAdd a Fresnel term to the opacity. Padrão false.
iornumberPadrão 1.0.
unlitbooleanUse the unlit shading model. Padrão false.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_triplanar (risco 2, altera, smoke)​

Triplanar (world-aligned) projection of a base colour and a normal map.

ArgumentoTipoDescrição
baseColorstring
normalstring
scalenumberPadrão 256.0.
sharpnessnumberPadrão 4.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_two_sided_foliage (risco 2, altera, smoke)​

Two-sided foliage: subsurface colour transmitted through thin leaves.

ArgumentoTipoDescrição
baseColorstring
baseColorTintUeaMatColor
normalstring
roughnessnumberPadrão 0.5.
subsurfaceColorUeaMatColorSubsurface / fuzz colour depending on the recipe.
amountnumberCloth fuzz amount or subsurface opacity. Padrão 0.5.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_ui (risco 2, altera, smoke)​

UI (widget) material: a texture tinted and faded, in the User Interface domain.

ArgumentoTipoDescrição
texturestring
tintUeaMatColor
opacitynumberPadrão 1.0.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_unlit_color (risco 2, altera, smoke)​

Flat unlit colour. The cheapest material there is; ideal for blockouts and debug.

ArgumentoTipoDescrição
colorUeaMatColor

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_vertex_color (risco 2, altera, smoke)​

Uses the mesh vertex colour as base colour.

ArgumentoTipoDescrição
folderstringDestination folder (ignored when "material" points at an existing asset).
namestringName of the material to create.
materialstringExisting material to fill instead of creating one (its graph is cleared).
parameterizebooleanExpose the recipe's inputs as material parameters (default true). Padrão true.
groupstringParameter group used when parameterizing.
compilebooleanRecompile at the end (default true). Padrão true.
savebooleanSave the package. Padrão false.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.recipe_water_simple (risco 2, altera, smoke)​

Simple water surface: scrolling normals, a tinted translucent body and a Fresnel rim.

ArgumentoTipoDescrição
normalstringNormal map scrolled over the surface.
speednumberPadrão 0.05.
colorUeaMatColor
opacitynumberPadrão 0.6.
fresnelbooleanPadrão true.

Retorna: asset, nodes, parameters, errors, nodeCount.

material.remove_function_input (risco 3, altera, smoke)​

Removes one input declaration from a function.

ArgumentoTipoDescrição
functionstringobrigatório.
namestringobrigatório.
newNamestringNew name (material.rename_function_input).

Retorna: params, total.

material.remove_function_output (risco 3, altera, smoke)​

Removes one output declaration from a function.

ArgumentoTipoDescrição
functionstringobrigatório.
namestringobrigatório.
newNamestringNew name (material.rename_function_input).

Retorna: params, total.

material.remove_layer (risco 3, altera, UE 5.0+, smoke)​

Removes one layer (and its blend) from the stack.

ArgumentoTipoDescrição
targetstringobrigatório.
indexintegerobrigatório.
visiblebooleanVisibility for material.set_layer_visible. Padrão true.
newIndexintegerNew index for material.reorder_layer. Padrão 0.
assetstringLayer or blend asset for material.set_layer_asset.
slotstring"layer" (default) or "blend" for material.set_layer_asset.

Retorna: layers, total, node.

material.rename (risco 2, altera, smoke)​

Renames a material asset in place.

ArgumentoTipoDescrição
materialstringobrigatório.
newNamestringobrigatório.

Retorna: asset, errors, notes.

material.rename_function (risco 2, altera, smoke)​

Renames a material function.

ArgumentoTipoDescrição
materialstringobrigatório.
newNamestringobrigatório.

Retorna: asset, errors, notes.

material.rename_function_input (risco 2, altera, smoke)​

Renames a function input. Materials calling the function keep their connection by index.

ArgumentoTipoDescrição
functionstringobrigatório.
namestringobrigatório.
newNamestringNew name (material.rename_function_input).

Retorna: params, total.

material.rename_instance (risco 2, altera, smoke)​

Renames a material instance.

ArgumentoTipoDescrição
materialstringobrigatório.
newNamestringobrigatório.

Retorna: asset, errors, notes.

material.rename_parameter (risco 3, altera, smoke)​

Renames a parameter declaration. Instances referencing the old name lose their override.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset.
namestringobrigatório. Parameter name.
groupstringNew parameter group.
valuestringNew default value (number, "(R=1,G=0,B=0,A=1)" or a texture asset path).
newNamestringNew name (material.rename_parameter).
minnumberSlider minimum (scalar parameters). Padrão 0.0.
maxnumberSlider maximum (scalar parameters). Padrão 0.0.
sortPriorityintegerSort priority in the details panel; negative keeps the current value. Padrão -1.

Retorna: parameter.

material.reorder_layer (risco 2, altera, UE 5.0+, smoke)​

Moves one layer to another position in the stack.

ArgumentoTipoDescrição
targetstringobrigatório.
indexintegerobrigatório.
visiblebooleanVisibility for material.set_layer_visible. Padrão true.
newIndexintegerNew index for material.reorder_layer. Padrão 0.
assetstringLayer or blend asset for material.set_layer_asset.
slotstring"layer" (default) or "blend" for material.set_layer_asset.

Retorna: layers, total, node.

material.replace_node_class (risco 3, altera, smoke)​

Replaces an expression with another class, reconnecting the inputs whose names match.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
newClassstringobrigatório. New expression class or alias.

Retorna: node, target, errors.

material.replace_texture (risco 2, altera, smoke)​

Replaces every reference to one texture with another across the whole graph. Returns the expressions it changed.

ArgumentoTipoDescrição
materialstringobrigatório.
fromstringobrigatório. Texture currently referenced.
tostringobrigatório. Replacement texture.
compilebooleanRecompile afterwards. Padrão false.

Retorna: count, items.

material.reset_to_parent (risco 5, altera, destrutivo, smoke)​

Resets an instance to its parent: every override is dropped.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant asset.

Retorna: asset, parent, parentChain, baseMaterial, parameters, overriddenCount, overrides.

material.save (risco 2, altera, smoke)​

Saves a material package to disk.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: asset, errors, notes.

material.save_function (risco 2, altera, smoke)​

Saves a material function package to disk.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: asset, errors, notes.

material.save_instance (risco 2, altera, smoke)​

Saves a material instance package to disk.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant asset.

Retorna: asset, errors, notes.

material.set_function_input (risco 2, altera, smoke)​

Changes the type, preview value, sort priority and description of one function input.

ArgumentoTipoDescrição
functionstringobrigatório.
namestringobrigatório.
typestring
previewValueUeaMatColor
sortPriorityintegerNegative keeps the current value. Padrão -1.
descriptionstring
usePreviewAsDefaultstring"true" / "false"; empty keeps the current state.

Retorna: params, total.

material.set_function_instance_parameters (risco 2, altera, smoke)​

Sets the parameter overrides of a Material Function Instance.

ArgumentoTipoDescrição
instancestringobrigatório. Material Function Instance asset.
scalarsarray of UeaMatScalarValue
vectorsarray of UeaMatVectorValue
texturesarray of UeaMatTextureValue

Retorna: asset, errors, notes.

material.set_function_settings (risco 2, altera, smoke)​

Changes the description, the expose-to-library flag and the palette categories of a function.

ArgumentoTipoDescrição
functionstringobrigatório.
descriptionstring
exposeToLibrarystring"true" / "false"; empty keeps the current state.
categoriesarray of string

Retorna: asset, description, exposeToLibrary, libraryCategories, inputs, outputs, nodeCount, users.

material.set_instance_overrides (risco 2, altera, smoke)​

Overrides blend mode, shading model, two-sided, dithered LOD, opacity mask clip value and shadow flags on an instance. Pass "inherit" to drop an override.

ArgumentoTipoDescrição
instancestringobrigatório.
blendModestringBlend mode override; "inherit" removes the override.
shadingModelstringShading model override; "inherit" removes the override.
twoSidedstring"true" / "false" / "inherit".
ditheredLODTransitionstring"true" / "false" / "inherit".
castDynamicShadowAsMaskedstring"true" / "false" / "inherit".
outputTranslucentVelocitystring"true" / "false" / "inherit" (5.x only).
opacityMaskClipValuenumberAlpha threshold override; negative keeps the current state. Padrão -1.0.
clearOpacityMaskClipValuebooleanRemove the opacity-mask-clip-value override. Padrão false.

Retorna: overrides, active.

material.set_instance_physical_material (risco 2, altera, smoke)​

Sets (or clears) the physical material override of an instance.

ArgumentoTipoDescrição
materialstringobrigatório.
physicalMaterialstringPhysical material asset; empty clears it.

Retorna: asset, parent, parentChain, baseMaterial, parameters, overriddenCount, overrides.

material.set_layer_asset (risco 2, altera, UE 5.0+, smoke)​

Replaces the layer or blend asset used at one position of the stack.

ArgumentoTipoDescrição
targetstringobrigatório.
indexintegerobrigatório.
visiblebooleanVisibility for material.set_layer_visible. Padrão true.
newIndexintegerNew index for material.reorder_layer. Padrão 0.
assetstringLayer or blend asset for material.set_layer_asset.
slotstring"layer" (default) or "blend" for material.set_layer_asset.

Retorna: layers, total, node.

material.set_layer_parameter (risco 2, altera, UE 5.0+)​

Overrides one parameter inside a layer (or its blend) of a material instance. SmokeSkip: it needs an instance whose parent exposes a layer stack with parameters, which the sandbox chain does not build.

ArgumentoTipoDescrição
instancestringobrigatório. Material Instance Constant that owns the layer stack.
layerIndexintegerobrigatório.
namestringobrigatório.
kindstringscalar (default) / vector / texture / switch.
valuestringValue as text: a number, "(R=..,G=..,B=..,A=..)", a texture path or true/false.
blendbooleanTarget the blend function of the layer instead of the layer itself. Padrão false.

Retorna: value, overridden, parentValue.

material.set_layer_visible (risco 2, altera, UE 5.0+, smoke)​

Shows or hides one layer of the stack.

ArgumentoTipoDescrição
targetstringobrigatório.
indexintegerobrigatório.
visiblebooleanVisibility for material.set_layer_visible. Padrão true.
newIndexintegerNew index for material.reorder_layer. Padrão 0.
assetstringLayer or blend asset for material.set_layer_asset.
slotstring"layer" (default) or "blend" for material.set_layer_asset.

Retorna: layers, total, node.

material.set_layers (risco 3, altera, UE 5.0+, smoke)​

Replaces the whole layer stack of a material: layers[0] is the background, blends[i] blends layers[i+1] onto the result.

ArgumentoTipoDescrição
targetstringobrigatório.
layersarray of stringobrigatório. Material layer function assets, background first.
blendsarray of stringBlend function assets; one per layer above the background.
namesarray of stringDisplay names.

Retorna: layers, total, node.

material.set_node_desc (risco 2, altera, smoke)​

Sets the description of an expression; it becomes a stable selector for later calls.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
descstringNew description; it doubles as a stable selector for later calls.

Retorna: node, target, errors.

material.set_node_properties (risco 2, altera, smoke)​

Sets several properties of an expression in one call.

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
propertiesarray of UeaKeyValueobrigatório. Property name/value pairs.

Retorna: node, target, errors.

material.set_node_property (risco 2, altera, smoke)​

Sets one property of an expression from text (numbers, enum names, asset paths).

ArgumentoTipoDescrição
targetstringobrigatório.
nodestringobrigatório.
propertystringobrigatório. Property name on the expression class, e.g. "Texture", "SamplerType", "ConstCoordinate".
valuestringNew value in text form (numbers, enum names, asset paths).

Retorna: node, target, errors.

material.set_parameter_default (risco 2, altera, smoke)​

Changes the default value of a parameter declaration.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset.
namestringobrigatório. Parameter name.
groupstringNew parameter group.
valuestringNew default value (number, "(R=1,G=0,B=0,A=1)" or a texture asset path).
newNamestringNew name (material.rename_parameter).
minnumberSlider minimum (scalar parameters). Padrão 0.0.
maxnumberSlider maximum (scalar parameters). Padrão 0.0.
sortPriorityintegerSort priority in the details panel; negative keeps the current value. Padrão -1.

Retorna: parameter.

material.set_parameter_group (risco 2, altera, smoke)​

Moves a parameter to another group in the details panel.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset.
namestringobrigatório. Parameter name.
groupstringNew parameter group.
valuestringNew default value (number, "(R=1,G=0,B=0,A=1)" or a texture asset path).
newNamestringNew name (material.rename_parameter).
minnumberSlider minimum (scalar parameters). Padrão 0.0.
maxnumberSlider maximum (scalar parameters). Padrão 0.0.
sortPriorityintegerSort priority in the details panel; negative keeps the current value. Padrão -1.

Retorna: parameter.

material.set_parameter_range (risco 2, altera, smoke)​

Sets the slider minimum and maximum of a scalar parameter.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset.
namestringobrigatório. Parameter name.
groupstringNew parameter group.
valuestringNew default value (number, "(R=1,G=0,B=0,A=1)" or a texture asset path).
newNamestringNew name (material.rename_parameter).
minnumberSlider minimum (scalar parameters). Padrão 0.0.
maxnumberSlider maximum (scalar parameters). Padrão 0.0.
sortPriorityintegerSort priority in the details panel; negative keeps the current value. Padrão -1.

Retorna: parameter.

material.set_parameters (risco 2, altera, smoke)​

Overrides several parameters of an instance in one call.

ArgumentoTipoDescrição
instancestringobrigatório.
scalarsarray of UeaMatScalarValue
vectorsarray of UeaMatVectorValue
texturesarray of UeaMatTextureValue
switchesarray of UeaMatSwitchValue
compilebooleanUpdate the instance afterwards (default true). Padrão true.

Retorna: parameters, total, overriddenCount.

material.set_parent (risco 2, altera, smoke)​

Reparents an instance; the overrides whose parameter names still exist are kept.

ArgumentoTipoDescrição
instancestringobrigatório.
parentstringobrigatório.

Retorna: asset, parent, parentChain, baseMaterial, parameters, overriddenCount, overrides.

material.set_physical_material (risco 2, altera, smoke)​

Sets (or clears) the physical material of a material.

ArgumentoTipoDescrição
materialstringobrigatório.
physicalMaterialstringPhysical material asset; empty clears it.

Retorna: asset, settings, connectedProperties, stats, errors.

material.set_preview_mesh (risco 2, altera)​

Sets the mesh shown in the material editor preview viewport. SmokeSkip: it only affects editor UI state and needs a viewport.

ArgumentoTipoDescrição
materialstringobrigatório.
meshstringobrigatório. sphere / cube / plane / cylinder, or a static-mesh asset path.

Retorna: asset, errors, notes.

material.set_scalar (risco 2, altera, smoke)​

Overrides one scalar parameter.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.
valuenumberobrigatório.

Retorna: value, overridden, parentValue.

material.set_settings (risco 2, altera, smoke)​

Changes domain, blend mode, shading model, two-sided, opacity mask clip value, customized UVs, decal response, usage flags and more. Only the fields you pass are touched.

ArgumentoTipoDescrição
materialstringobrigatório.
domainstring
blendModestring
shadingModelstring
shadingModelsarray of stringExtra shading models to allow (5.x, materials using "from_material_expression").
twoSidedstring"true"/"false" to change it; empty to keep.
opacityMaskClipValuenumberAlpha threshold of masked materials; negative keeps the current value. Padrão -1.0.
ditheredLODTransitionstring
tangentSpaceNormalstring
numCustomizedUVsintegerNumber of customized UV outputs (0..8); negative keeps the current value. Padrão -1.
allowNegativeEmissivestring
blendableLocationstringPost-process blendable location (before_tonemapping / after_tonemapping / before_translucency / ...).
refractionMethodstringRefraction method (5.x only): none / index_of_refraction / pixel_normal_offset.
materialDecalResponsestringnone / color_normal_roughness / color / color_normal / color_roughness / normal / normal_roughness / roughness.
castRayTracedShadowsstring
usagearray of stringbUsedWith* flags to enable, by short name ("skeletal_mesh", "particle_sprites", "niagara_sprites", "instanced_static_meshes", "static_lighting", ...).
subsurfaceProfilestringSubsurface profile asset.
compilebooleanRecompile after the change (default false: batch settings then call material.compile). Padrão false.

Retorna: asset, settings, connectedProperties, stats, errors.

material.set_sort_priority (risco 2, altera, smoke)​

Sets the sort priority of a parameter in the details panel.

ArgumentoTipoDescrição
targetstringobrigatório. Material or Material Function asset.
namestringobrigatório. Parameter name.
groupstringNew parameter group.
valuestringNew default value (number, "(R=1,G=0,B=0,A=1)" or a texture asset path).
newNamestringNew name (material.rename_parameter).
minnumberSlider minimum (scalar parameters). Padrão 0.0.
maxnumberSlider maximum (scalar parameters). Padrão 0.0.
sortPriorityintegerSort priority in the details panel; negative keeps the current value. Padrão -1.

Retorna: parameter.

material.set_static_component_mask (risco 2, altera)​

Overrides one static component mask parameter. SmokeSkip: it needs a StaticComponentMaskParameter declared in the parent material, which the sandbox chain does not create.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.
rbooleanPadrão true.
gbooleanPadrão false.
bbooleanPadrão false.
abooleanPadrão false.

Retorna: value, overridden, parentValue.

material.set_static_switch (risco 2, altera, smoke)​

Overrides one static switch parameter (changes the shader permutation).

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.
valuebooleanPadrão true.

Retorna: value, overridden, parentValue.

material.set_subsurface_profile (risco 2, altera, smoke)​

Sets (or clears, when the asset is empty) the subsurface profile override of an instance.

ArgumentoTipoDescrição
materialstringobrigatório.
physicalMaterialstringPhysical material asset; empty clears it.

Retorna: asset, parent, parentChain, baseMaterial, parameters, overriddenCount, overrides.

material.set_texture (risco 2, altera, smoke)​

Overrides one texture parameter.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.
texturestringobrigatório. Texture asset path.

Retorna: value, overridden, parentValue.

material.set_usage (risco 2, altera, smoke)​

Enables or disables one bUsedWith* flag of a material (skeletal_mesh, particle_sprites, instanced_static_meshes, ...).

ArgumentoTipoDescrição
materialstringobrigatório.
usagestringobrigatório. Short usage name: skeletal_mesh, particle_sprites, beam_trails, mesh_particles, static_lighting, morph_targets, spline_mesh, instanced_static_meshes, geometry_collections, clothing, niagara_sprites, niagara_ribbons, niagara_mesh_particles, geometry_cache, water, hair_strands, lidar_point_cloud, virtual_heightfield_mesh (5.x adds nanite, static_mesh, volumetric_cloud, ...).
enabledbooleanTrue to enable (default), false to disable. Padrão true.

Retorna: available, enabled.

material.set_vector (risco 2, altera, smoke)​

Overrides one vector (colour) parameter.

ArgumentoTipoDescrição
instancestringobrigatório.
namestringobrigatório.
colorUeaMatColor

Retorna: value, overridden, parentValue.

material.update_function (risco 2, altera, smoke)​

Recompiles the materials that call a function after its graph changed.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: count, items.

material.validate (risco 0, smoke)​

Checks a material for unconnected required inputs, missing textures, sampler-type mismatches and unused parameters.

ArgumentoTipoDescrição
materialstringobrigatório. Material asset path or unique name.

Retorna: valid, issues, errorCount, warningCount.

material.validate_function (risco 0, smoke)​

Checks a function for unconnected outputs, unused inputs and duplicate names.

ArgumentoTipoDescrição
functionstringobrigatório. Material Function asset path or unique name.

Retorna: valid, issues, errorCount, warningCount.