Skip to content

Does RunString work without a LuaCode asset? #74

Open
@bingqiao

Description

@bingqiao

I'm trying to run a simple script using LuaMachine but it keeps crashing.

FLuaValue Result = LuaState->RunString(TEXT("print('LuaMachine initialized in SampleGameActor!')"), TEXT("SampleGameTest"));

RunString has two arguments. Does the second one have to be the name of a LuaCode asset?

Or am I doing something that's just not meant to work?

Thanks!

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