Description

The ETraceTypeQuery and EObjectTypeQuery enums declared in EngineTypes.h aren't fully exposed to Python. Both enums have 32 entries, but Python is only aware of the first 2 for ETraceTypeQuery and the first 6 for ObjectTypeQuery. This is reflected on the API docs as well (unreal.TraceTypeQuery, unreal.ObjectTypeQuery).

Steps to Reproduce

Type the following in the Python console within the editor:

print(unreal.TraceTypeQuery.TRACE_TYPE_QUERY1)

Note the output: <TraceTypeQuery.TRACE_TYPE_QUERY1: 0>

Type the following in the Python console within the editor:

print(unreal.TraceTypeQuery.TRACE_TYPE_QUERY3)

Editor will display an error

 

 

Have Comments or More Details?

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

1
Login to Vote

Unresolved
ComponentUE - Editor - Framework - Python
Affects Versions4.27
Target Fix5.0
CreatedOct 5, 2021
UpdatedOct 15, 2021