asqbtcupid / unreal.lua

lua solution for UnrealEngine4
MIT License
300 stars 98 forks source link

some kind of enum type can not be export #15

Closed mirchd closed 6 years ago

mirchd commented 6 years ago

such as, in WidgetComponent.h UENUM(BlueprintType) enum class EWidgetSpace : uint8 { /* The widget is rendered in the world as mesh, it can be occluded like any other mesh in the world. / World, /* The widget is rendered in the screen, completely outside of the world, never occluded. / Screen };

protected: /* The coordinate space in which to render the widget / UPROPERTY(EditAnywhere, Category=UserInterface) EWidgetSpace Space;

export: in WidgetComponent.script.h static int32 UWidgetComponent_Set_Space(lua_State L) { UWidgetComponent Obj = (UWidgetComponent*)UTableUtil::tousertype("UWidgetComponent",1); return 0; }

~please help

asqbtcupid commented 6 years ago

new version is ok.WidgetComponent.script.h is renamed to WidgetComponent.lua.h.

mirchd commented 6 years ago

thanks