Hi there, I am getting the following errors when I try packaging my game in UE 5.4.1 in Mac.
LogBlueprint: Error: [Compiler] In use pin <Unnamed> no longer exists on node Point Generator . Please refresh node or break links to remove pin. from Source: /Game/bp2.bp2
UATHelper: Packaging (Mac): LogInit: Display: LogBlueprint: Error: [Compiler] In use pin Return Value no longer exists on node Point Generator . Please refresh node or break links to remove pin. from Source: /Game/bp2.bp2
UATHelper: Packaging (Mac): LogInit: Display: LogBlueprint: Error: [Compiler] Could not find a function named "point_generator" in 'bp2'.
UATHelper: Packaging (Mac): LogInit: Display: LogBlueprint: Error: [Compiler] The current value of the ' Array generated from expanding Get (a copy) ' pin is invalid: Array inputs (like 'Target Array') must have an input wired into them (try connecting a MakeArray node). from Source: /Game/bp2.bp2
This is my custom code -
import unreal
import numpy as np
@unreal.uclass()
class MyBPFunctionLibrary(unreal.BlueprintFunctionLibrary):
@unreal.ufunction(ret=unreal.Array(unreal.Vector), static=True, meta=dict(Category="Numerical Operations", DisplayName="point_generator"))
def point_generator() -> list[unreal.Vector]:
points = np.random.uniform(low=[-5, -5, -5], high=[5, 5, 5], size=(10, 3))
unreal_points = [unreal.Vector(point[0], point[1], point[2]) for point in points]
return unreal_points
unreal.log("MyBPFunctionLibrary was loaded")
In my node, I initially tried with 2 input pins, in the current code version I dont have any input pins in my custom node. Still, I am getting the above errors 1 and 2 which is strange.
I tried recompiling, refreshing, and printing out the functions in my blueprint(bp2, and it is showing my function there). I have also enabled python scripting plugin.
I am working with UE 5.4.1 in Macbook pro with Python 3.11.
It would be great if you can help me to understand and resolve this issue. Thanks in advance.