Skip to content
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

Make LUA value keeps losing the type #32

Open
DoubleP90 opened this issue Aug 21, 2021 · 2 comments
Open

Make LUA value keeps losing the type #32

DoubleP90 opened this issue Aug 21, 2021 · 2 comments

Comments

@DoubleP90
Copy link

Make Lua value keeps losing the type, requiring a refresh of the node
Type recompile

After refreshing the node I lose the type enum
Refreshed

After a while I am able to refresh the node again and the enum type returns
Returned

Sometimes the warning returns and I lose the enum again

This happens every time I start the project, the issue is present in 4.26 (where the screenshots are from, no source modification) and 5.0

@Olathuss
Copy link
Contributor

Olathuss commented Apr 25, 2023

I don't think this is a problem with LuaMachine, most likely it's Unreal. That's the only issue I can think which would cause this, because Unreal thinks the struct has changed for some reason. Recompiling the source typically causes this, although it should only happen if you changed the Plugin source.

There are two potential workarounds:
Use the Struct's Constructor method instead of Unreal's "Make (Struct)" operator:
image

It will automatically set the type for you.

Or check which pins you have visible on the details panel:
image

@Olathuss
Copy link
Contributor

Olathuss commented Apr 25, 2023

I just tried this on a 5.1 project and I'm not able to replicate it.
What type of Blueprint are you using? Actor, LuaState, Component?

Can you replicate it with a fresh project? Does it happen with all your blueprints or just a specific one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants