unreal.NiagaraScriptConversionContext

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

Bases: unreal.Object

Wrapper for programmatically adding scripts to a UNiagaraEmitter through a UNiagaraEmitterConversionContext.

C++ Source:

  • Plugin: CascadeToNiagaraConverter

  • Module: CascadeToNiagaraConverter

  • File: NiagaraStackGraphUtilitiesAdapterLibrary.h

get_module_enabled() bool

Get Module Enabled

Return type

bool

log(message, severity, is_verbose=False) None

Log a message to the stack and the niagara message log for the module associated with this script.

Parameters
  • message (str) – The message string to display.

  • severity (NiagaraMessageSeverity) – The severity of the message.

  • is_verbose (bool) – Whether the message is verbose and should be displayed conditionally.

set_module_enabled(module_enabled) None

Set Module Enabled

Parameters

module_enabled (bool) –

set_parameter(parameter_name, parameter_input, has_edit_condition=False, edit_condition_value=False) bool

Set a parameter on the Script this Script Conversion Context holds.

Parameters
Returns

Whether setting the parameter was successful.

Return type

bool