Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在为每个棋子创建自己的基类时遇到问题,我的意思是每个角色也是如此。
如何让我的 MyCharacter 继承继承 MyActor 的 MyPawn?
这在蓝图中可能吗?如果没有,那么在 C++ 中是可能的吗?(不改变内置类)
谢谢!
是的,这在蓝图和 C++ 中是可能的。
如果您想要蓝图 pawn 父级,只需在内容浏览器中右键单击它并选择“基于此创建蓝图”。
如果您想要一个 C++ 类作为父类,则使用“将代码添加到项目”按钮并选择“pawn”作为父类。然后,当您创建新蓝图时,只需选择您的 c++ 类作为父类(隐藏在 Pick Parent 对话框中的“All Classes”小按钮后面)。