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
- 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_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
parameter_name (str) – The target parameter name.
parameter_input (NiagaraScriptConversionContextInput) – Value to set on the parameter.
has_edit_condition (bool) –
edit_condition_value (bool) –
- Returns
Whether setting the parameter was successful.
- Return type