unreal.TextureFactory

class unreal.TextureFactory(outer=None, name='None')

Bases: unreal.Factory

Texture Factory

C++ Source:

  • Module: UnrealEd

  • File: TextureFactory.h

Editor Properties: (see get_editor_property/set_editor_property)

  • alpha_coverage_thresholds (Vector4): [Read-Write] Alpha Coverage Thresholds: Channel values to compare to when preserving alpha coverage from a mask for mips

  • alpha_to_emissive (bool): [Read-Write] Alpha to Emissive: If enabled, link the texture’s alpha to the created material’s emissive color

  • alpha_to_opacity (bool): [Read-Write] Alpha to Opacity: If enabled, link the texture’s alpha to the created material’s opacity

  • alpha_to_opacity_mask (bool): [Read-Write] Alpha to Opacity Mask: If enabled, link the texture’s alpha to the created material’s opacity mask

  • alpha_to_roughness (bool): [Read-Write] Alpha to Roughness: If enabled, link the texture’s alpha to the created material’s roughness

  • asset_import_task (AssetImportTask): [Read-Write] Asset Import Task: Task for importing file via script interfaces

  • automated_import_data (AutomatedAssetImportData): [Read-Write] Automated Import Data: Data for how to import files via the automated command line importing interface

  • blending (BlendMode): [Read-Write] Blending: The blend mode of the created material

  • compression_settings (TextureCompressionSettings): [Read-Write] Compression Settings: Compression settings for the texture

  • context_class (type(Class)): [Read-Write] Context Class: Class of the context object used to help create the object.

  • create_material (bool): [Read-Write] Create Material: If enabled, a material will automatically be created for the texture

  • create_new (bool): [Read-Write] Create New: The default value to return from CanCreateNew()

  • defer_compression (bool): [Read-Write] Defer Compression: If enabled, compression is deferred until the texture is saved

  • dither_mip_map_alpha (bool): [Read-Write] Dither Mip Map Alpha: If enabled, mip-map alpha values will be dithered for smooth transitions

  • do_scale_mips_for_alpha_coverage (bool): [Read-Write] Do Scale Mips for Alpha Coverage: Whether mip RGBA should be scaled to preserve the number of pixels with Value >= AlphaCoverageThresholds

  • edit_after_new (bool): [Read-Write] Edit After New: true if the associated editor should be opened after creating a new object.

  • editor_import (bool): [Read-Write] Editor Import: true if the factory imports objects from files.

  • flip_normal_map_green_channel (bool): [Read-Write] Flip Normal Map Green Channel: If enabled, the texture’s green channel will be inverted. This is useful for some normal maps

  • formats (Array(str)): [Read-Write] Formats: List of formats supported by the factory. Each entry is of the form “ext;Description” where ext is the file extension.

  • lod_group (TextureGroup): [Read-Write] LODGroup: The group the texture belongs to

  • mip_gen_settings (TextureMipGenSettings): [Read-Write] Mip Gen Settings: The mip-map generation settings for the texture; Allows customization of the content of the mip-map chain

  • no_alpha (bool): [Read-Write] No Alpha: If enabled, the texture’s alpha channel will be discarded during compression

  • preserve_border (bool): [Read-Write] Preserve Border: If enabled, preserve the value of border pixels when creating mip-maps

  • rgb_to_base_color (bool): [Read-Write] RGBTo Base Color: If enabled, link the texture to the created material’s base color

  • rgb_to_emissive (bool): [Read-Write] RGBTo Emissive: If enabled, link the texture to the created material’s emissive color

  • shading_model (MaterialShadingModel): [Read-Write] Shading Model: The shading model of the created material

  • supported_class (type(Class)): [Read-Write] Supported Class: The class manufactured by this factory.

  • text (bool): [Read-Write] Text: true if the factory imports objects from text.

  • two_sided (bool): [Read-Write] Two Sided: If enabled, the created material will be two-sided