Hi, I’m trying to develop a tool that will be used in the UE editor. It will generate and place buildings that will be used in game.
It takes modular blocks and arrange them into building, then into streets.
Currently I’m doing it under construction Script in the Editor, but UE don’t let me spawn actor if I’m not in Play mode. I don’t want my whole generation to be child component of my generator, I would like to have each building separated so I can select them individually.
Can I do it only in construction script ?
If I really have to do it in Play mode, is there a way to save my generation when I hit stop (and don’t lose it) ?
Are there better ways to do it ?
I want this tool to be an environment artist helper, not a procedural level generator like roguelike games.
Thx for your help
这是个很有意思的回答,你可能会想到ConstructionScript,但是,他不能生成Actor,但是可以生成Component,如果这样还不能满足你的需求,那么尝试用其他更贴近底层的办法吧,首先知道Runtime下是怎么生成Actor的,然后在编辑器状态下,调用正确的方法和参数,就可以实现了,我也在找,哈哈!
Create an Actor Blueprint, create a Event driving all your code and check the “Call in Editor” checkbox in the event properties. Drop the Actor in your map and click the new button in the Details.
1 Like
哦, 我的上帝, 瞧瞧你这个优秀的回答, 我应该用杰克的猴皮筋做成弹弓弹碎你家的所有窗户, 相信我, 我一定会的.