Skip to content

Unreal Enums seems to create problems #21

@datee

Description

@datee

It seems that in general trying to use Unreal Enums in Haxe causes problems.

Test:

var b:EBodyCollisionResponse = EBodyCollisionResponse.BodyCollision_Enabled;
var c:EBlendableLocation = EBlendableLocation.BL_AfterTonemapping;
var e:EndPlayReason:EEndPlayReason = EEndPlayReason.Destroyed;

I get :

C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	36	Error (active)	E1696	cannot open source file "EBlendableLocation.h"	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	36	Error (active)	E1696	cannot open source file "EBodyCollisionResponse/Type.h"	HaxeProject	
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	39	Error (active)	E1696	cannot open source file "EEndPlayReason/Type.h"	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	42	Error (active)	E0276	name followed by '::' must be a class or namespace name	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	88	Error (active)	E0276	name followed by '::' must be a class or namespace name	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	89	Error (active)	E0413	no suitable conversion function from "EEndPlayReason::Type" to "EEndPlayReason::Type" exists	HaxeProject	

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions