unreal.MaterialInstanceConstant
¶
- class unreal.MaterialInstanceConstant(outer=None, name='None')¶
Bases:
unreal.MaterialInstance
Material Instances may be used to change the appearance of a material without incurring an expensive recompilation of the material. General modification of the material cannot be supported without recompilation, so the instances are limited to changing the values of predefined material parameters. The parameters are statically defined in the compiled material by a unique name, type and default value.
C++ Source:
Module: Engine
File: MaterialInstanceConstant.h
Editor Properties: (see get_editor_property/set_editor_property)
asset_import_data
(AssetImportData): [Read-Write] Asset Import Data: Importing data and options used for this materialasset_user_data
(Array(AssetUserData)): [Read-Write] Asset User Data: Array of user data stored with the assetbase_property_overrides
(MaterialInstanceBasePropertyOverrides): [Read-Write] Base Property Overridesdouble_vector_parameter_values
(Array(DoubleVectorParameterValue)): [Read-Write] Double Vector Parameter Values: DoubleVector parameters.font_parameter_values
(Array(FontParameterValue)): [Read-Write] Font Parameter Values: Font parameters.lightmass_settings
(LightmassMaterialInterfaceSettings): [Read-Write] Lightmass Settings: The Lightmass settings for this object.override_subsurface_profile
(bool): [Read-Write] Override Subsurface Profile: Defines if SubsurfaceProfile from this instance is used or it uses the parent one.parent
(MaterialInterface): [Read-Write] Parent: Parent material.phys_material
(PhysicalMaterial): [Read-Write] Phys Material: Physical material to use for this graphics material. Used for sounds, effects etc.phys_material_mask
(PhysicalMaterialMask): [Read-Write] Phys Material Mask: Physical material mask to use for this graphics material. Used for sounds, effects etc.physical_material_map
(PhysicalMaterial): [Read-Write] Physical Material Map: Physical material map used with physical material mask, when it exists.preview_mesh
(SoftObjectPath): [Read-Write] Preview Mesh: The mesh used by the material editor to preview the material.runtime_virtual_texture_parameter_values
(Array(RuntimeVirtualTextureParameterValue)): [Read-Write] Runtime Virtual Texture Parameter Values: RuntimeVirtualTexture parameters.scalar_parameter_values
(Array(ScalarParameterValue)): [Read-Write] Scalar Parameter Values: Scalar parameters.subsurface_profile
(SubsurfaceProfile): [Read-Write] Subsurface Profile: SubsurfaceProfile, for Screen Space Subsurface Scatteringtexture_parameter_values
(Array(TextureParameterValue)): [Read-Write] Texture Parameter Values: Texture parameters.thumbnail_info
(ThumbnailInfo): [Read-Only] Thumbnail Info: Information for thumbnail renderingvector_parameter_values
(Array(VectorParameterValue)): [Read-Write] Vector Parameter Values: Vector parameters.
- get_scalar_parameter_value(parameter_name) float ¶
Get the scalar (float) parameter value from an MIC
- get_vector_parameter_value(parameter_name) LinearColor ¶
Get the MIC vector parameter value
- Parameters
parameter_name (Name) –
- Return type