unreal.CreateComponentParams

class unreal.CreateComponentParams

Bases: StructBase

FCreateComponentParams is a collection of input data intended to be passed to UModelingObjectsCreationAPI::CreateNewComponentOnActor().

C++ Source:

  • Plugin: MeshModelingToolset

  • Module: ModelingComponents

  • File: ModelingObjectsCreationAPI.h

Editor Properties: (see get_editor_property/set_editor_property)

  • base_name (str): [Read-Write] The base name of the new Component

  • component_class (type(Class)): [Read-Write] A component class to instantiate a new component instance of.

  • host_actor (Actor): [Read-Write] An actor to host the new component

  • set_as_root (bool): [Read-Write] If true, and if the component class is derived from USceneComponent, set this component as the root of the Actor.

  • transact (bool): [Read-Write] If true, wrap the creation operation in a transaction, and create the component with the RF_Transactional object flag set.