[2.0] Get blueprint in cursor on_pre_build
Posted: Tue Oct 29, 2024 3:26 pm
I am trying to get LuaRecord of blueprint held in cursor during op_pre_build
player.cursor_record.get_blueprint_entities() works fine when in cursor is single blueprint
but when i take whole blueprint book and try to place the selected blueprint from it, player.cursor_record.get_blueprint_entities() fails (Record is not a BlueprintRecord.)
From the LuaRecord of BlueprintBook i can access contents with all blueprints in the book, but where is no info which of them is the one which is selected
Someone pointed me to cursor_stack, but it is empty for both scenarios - is there way to call get_blueprint_entities() on bleprint from book ?
thanks
player.cursor_record.get_blueprint_entities() works fine when in cursor is single blueprint
but when i take whole blueprint book and try to place the selected blueprint from it, player.cursor_record.get_blueprint_entities() fails (Record is not a BlueprintRecord.)
From the LuaRecord of BlueprintBook i can access contents with all blueprints in the book, but where is no info which of them is the one which is selected
Someone pointed me to cursor_stack, but it is empty for both scenarios - is there way to call get_blueprint_entities() on bleprint from book ?
thanks