ncsoft / Unreal.js

Unreal.js: Javascript runtime built for UnrealEngine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actor.GetActorLocation() working in editor, not in packaged build

mhale1 opened this issue · comments

The following JS code works fine when playing in the editor:

    GameplayStatics.GetAllActorsOfClass(GWorld, Actor).OutActors.forEach((a) =>
      console.log(a.GetActorLocation())
    );

However that same code when running in a packaged build gives an error that GetActorLocation is not a function.

Any ideas? Parent proxy actor class not being set up properly in packaged build?

I'm using Unreal 5.0.2 and the latest UnrealJS core as of today.

Ignore this, I suppose. I was helping someone with builds on this issue and the packaged builds worked for me. I swore I did the same thing both times, haha. Oh well.