Skip to content

[Bug/Feature request] Enum and bit field casts do not work in type views #565

@Kaltxi

Description

@Kaltxi

Trying to cast an integer to an enum and casting bit field values fails with "Cannot convert to this type".

Enum example TEnumAsByte from UE, where .Value is unsigned char:

Type: TEnumAsByte<enum ETickingGroup>
Expression: (ETickingGroup)($.Value)

Bit field example:

Type: unsigned char : 1
Expression: (bool)$

Also oddly bit fields sometimes are displayed as integers and other times as chars:
Image

As a tangent it would also be great to be able to specify the type as a regex or at least a simpler glob expression with captures, so things like templates/generics can be covered by a single type view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions