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.
我有一个 UI 小部件elevatorButton6。当玩家按下此小部件上的按钮时,我想启动一个 bluerint bp_elevatorButton6,但我无法投射到它
elevatorButton6
bp_elevatorButton6
小部件:
这里我使用界面bpi_elevatorButton:
bpi_elevatorButton
在您的 GetAllActorsOfClass 上,从 Array 中拖动一个节点并使用 GET 节点(索引为 0)。如果您在世界中仅生成了 1 个名为 BP_ElevatorButton6 的 BP,则您确定索引 0 将返回该对象,如果您有 1 个以上的对象,它将首先返回找到的对象。来自 GET 的节点将进入 CastTo BP_ElevatorButton6 中的 Object 节点
编辑:更正了一些错别字