-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UObject.Find is not a function #26
Comments
I switched back to UnrealJS.Prebuild.4.10-hotfix-20151127-1 and it appears to have fixed the issue. I assume something is wrong with the newer build? |
I rebuilt and uploaded a new build, please check again with the new build. (Unfortunately there is no automated test yet) |
Hi Nako, thanks for the new build. I've tried it again and am getting the same issue. Is it something with my install that's incorrect? Content/Scripts should be in the Plugins folder, and then what else should be in my game's Content/Scripts folder? |
There should be 'aliases.js' in GameContent/Scripts.
:) |
I do have that. One thing I noticed that was a source of confusion was that there are two Content/Scripts folders, one in the Plugin/UnrealJS and the other in Plugin/UnrealJS/Examples What I did in the previous version was I copied the working example files in Content/Scripts folder to my project's Content/Scripts folder and then started building from there. Am I doing this correctly? Where is this:
Supposed to be? |
I see now where the Context.RunFile is (bootstrap). However the aliases.js seem to be missing UObject.prototype.Find UObject.prototype.Modify = UObject.prototype.ModifyObject; |
Alright I was able to get it working again by reverting to the old unrealEngineClassId global method you had in an earlier uclass.js.
And then...
Instead of using the for loop and then testing UObject.Find, since that is unavailable through aliases. Hopefully we can get a correct fix for this at some point :) |
Actually |
Hi Nako, I've updated to the latest version and encountered this problem:
UnrealJS exists here: C:\Program Files (x86)\Epic Games\4.10\Engine\Plugins\UnrealJS
Which I've unzipped from UnrealJS.Prebuilt.4.10.1-20160106-1
The line from which eventually reaches that is:
Which I've copied from one of your examples.
The text was updated successfully, but these errors were encountered: