unreal.MaterialExpressionMaterialXMod¶
- class unreal.MaterialExpressionMaterialXMod(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
MaterialExpressionThe remaining fraction after dividing an incoming input by a value and subtracting the integer portion. Unlike UE FMod or Modulo expressions, Mod always returns a non-negative result, matching the interpretation of the GLSL and OSL mod() function (not fmod()). This is computed as x - y * floor(x/y).
C++ Source:
Plugin: Interchange
Module: InterchangeImport
File: MaterialExpressionMod.h
Editor Properties: (see get_editor_property/set_editor_property)
const_b(float): [Read-Write] only used if B is not hooked updesc(str): [Read-Write] A description that level designers can add (shows in the material editor UI).material_expression_editor_x(int32): [Read-Write]material_expression_editor_y(int32): [Read-Write]