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 Questions & Answers just mention UE-130769 in the post.

1
Login to Vote

Won't Fix
ComponentUE - Editor - Workflow Systems
Affects Versions4.275.1
Target Fix5.1
CreatedOct 5, 2021
ResolvedAug 31, 2022
UpdatedJan 22, 2024
View Jira Issue