Description

The console commands do not execute from Python if optional PlayerController parameter is not filled.

Tested in 4.20.3 (CL- 4369336), 4.21.2 (CL - 4753647), 4.22 (CL - 4902349)

Steps to Reproduce
  1. Enable the Python and Scripting Utilities plugins
  2. Create the following the Python script: 
    import unreal
    editor = unreal.EditorLevelLibrary.get_editor_world()
    console_command = 'stat fps'
    unreal.SystemLibrary.execute_console_command(editor, console_command)
    

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-69604 in the post.

1
Login to Vote

Fixed
ComponentTools - Python
Affects Versions4.224.20.34.21.2
Target Fix4.22
Fix Commit4988584
Main Commit4988585
Release Commit5226303
CreatedFeb 5, 2019
ResolvedFeb 13, 2019
UpdatedApr 3, 2019