Closed mirchd closed 6 years ago
you have to #include "Formation.lua.h", struct is special.
it is resolved, thanks
and subclass
public:
UPROPERTY(EditDefaultsOnly, Category = "CannonFire")
TSubclassOf
class AMissileActor : public AActor
when link, it says " AMissileActor::GetPrivateStaticClass can be find,
UCLASS() class YOUR_GAMEMODULE_API AArmyShipActor : public AActor { GENERATED_BODY() }
your class is not a api class, you should add YOUR_GAMEMODULE_API macro.Have a look to engine's class declaration.
it is ok~thank you very much
Is LuaDebugger plugin can be used in visual studio? and may I debug lua in ue4?
in ue4 editor, click windows -> LuaDebugger.Then open the debugger.
thanks,I'll try it~
my struct: USTRUCT() struct FFormation { GENERATED_BODY()
};
when compile at "luacallr(FFormation, ...." it match template
static T popinternal(lua_State L, int index, typename TEnableIf< TIsSame<typename traitstructclass::NotStructType, NotNeedTempInsType>::Value,T>::Type pp = nullptr )
{
return (T)ue_lua_tointeger(L, index);
};
please help