tsu
tsu copied to clipboard
"Add [...] Component" nodes aren't exposed
These seem to be handled in blueprint through UK2Node_AddComponent
.
The current workaround would be something similar to how it is in C++:
export function construct(target: BP_Foo, mesh: StaticMesh) {
const component = new StaticMeshComponent(target);
component.registerComponent();
component.setStaticMesh(mesh);
target.addOwnedComponent(component);
}