An AI coder told me that interface blueprints could be created in blueprints and provided to C++ files to call interfaces. However, after several hours of research, it was found that C++ simply cannot call interfaces not created in C++ (even declarations cannot do this), and the blueprint interfaces in blueprints can only be provided for use by other blueprints?
However, this operation of AI reminds me why blueprints and C++ are currently interacting unidirectionally rather than bidirectionally in many fields? It is hoped that more two-way interactive capabilities can be developed. In this way, the positioning of UE5 will be elevated to a higher level, evolving from a tool into a C++ developer. And these development efforts should occur naturally when the development reaches stage 5.7. Thank you to the UE5 development team. If you are fortunate enough to read this discussion, I hope to receive your thoughts and responses. That’s all.
某个写代码的AI告诉我可以在蓝图中创建接口蓝图并且提供给C++文件中调用接口,但在几个小时的研究后发现,C++根本无法调用非C++创建的接口(申明都无法做到),蓝图中的蓝图接口只能提供给其他蓝图使用?
不过AI的这一操作提醒了我,为什么蓝图和C++目前在很多领域都是单向互动,而不是双向互动呢?希望能开发更多双向互动的能力,这样UE5的定位会更上一层楼,会从一个工具进化成为C++开发器。而这些开发工作应该在发展到5.7阶段将要自然而然地发生了,感谢UE5开发组,如果有幸看到这篇讨论,希望能得到你们的思考和回复。以上。
所有在游戏中的蓝图资产都是客观存在的资产并且可以在C++底层找到你需要的某个蓝图,然后自由调用该蓝图的所有事件和函数,你认为无法做到只是你没找到方法
I’ve hit the same wall before, so I get where you’re coming from. When you first hear that Blueprint Interfaces can be passed into C++, it sounds simple, but once you dig into it you realise C++ still expects native definitions for anything it wants to call directly. Blueprint-only interfaces stay on the Blueprint side unless you wrap them with a C++ interface or a UObject that C++ can actually see.
Right now the workflow really is one way in most cases. C++ exposes things and Blueprints build on top. Full two way interaction would be amazing, but it would also mean big engine changes because of how reflection and compilation work behind the scenes.
Still, I agree with the idea. If Epic adds more flexible bridging later, especially around 5.7 or beyond, it would help a lot of hybrid projects. I’m following this topic too and would like to hear what the devs think.