Open V2iDanAbend opened 10 months ago
Same issue for 2.2.4, UE 4.27. NewObject() created objects only use the first file dynamically bound to them.
You cannot bind different lua modules to one UClass
, because UFunctions
are stored in the UClass
.
UnLua will only use the first binding, other bindings will be ignored.
If you really need to do this, try generated different classes from the SpawnClass dynamically and then bind different lua modules to them. See my reply in https://github.com/Tencent/UnLua/issues/658
Hi,
The Dynamic Binding functionality is not working correctly anymore. For example, in this test, the code is selecting a random test module to bind to the BP_GravitySphere actor from the "DynamicBinding" tutorial.
The Test modules are just a simple print:
The expected behavior is, each time Left Mouse is pressed, a random Module is selected, bound to the spawned actor and function "Run" is done.
This is not the case, in all cases, the Spawn Actor will be bound to the first module that was bound each time the mouse is clicked: