Add Building
Read more about buildings in this chapter.
-
In Outliner, right-click the scene_art section and select Create:
-
Find map_03_building_recycling_2_plan_prefab and click it:
Tip
When adding a broken building that the player should restore, always use prefabs that have _plan_ in the name.
-
In Viewport, move and rotate the instance of the map_03_building_recycling_2_plan_prefab so it fits the scene:
Object editing controls
Press R once to switch to the Scale mode and drag the axes of the object. Press W to switch back to the Translate mode.
Warning
When moving and rotating an object, make sure that the whole object is selected in Outliner (not just a part of it):
-
Next let's make preparations for the Set Up Objective and Create Scenario steps:
-
Click
to open full settings view for the building:
-
In the Tagged section, set the Prop Tagget property to build_1:
This way you will be able to find this building by the tag when scripting additional behavior.
-
Clear the checkbox of the Enable Disable property:
This property is used like a flag when scripting: if the checkbox is empty, then it's treated as
false
, otherwise — astrue
. Most of the objects in the game have this property. It is used to trigger scripts based on the object's Enable/Disable state.
-
See the next step.