Building Placer
You can find all the information about Building Placer here.
Last updated
Was this helpful?
You can find all the information about Building Placer here.
Last updated
Was this helpful?
Manages all aspects of building modes (Placement, Destruction, Edition).
Include three Build Modes
Placement Mode allows you to preview a to place it.
Destruction Mode allows you to preview a already placed to destroy it.
Edition Mode allows you to preview a already placed to move it elsewhere.
A Input Handler component is required to know which actions to trigger according to user inputs.
By default the system uses the Standalone Input Handler to handle user inputs. It allows you to manage the selection of build modes and of different available in the of the scene. You can change the Action's key for each action directly in the inspector. This works also with the new Unity Input System.
If you want to use the system for Android platforms. You can use the Android Input Handler.
On platforms which require a gamepad. You can use the Gamepad Input Handler. You will need to use the new Unity Input System and import the support .
This component must be attached to a camera with the tag "Main Camera". In the Raycast Settings section, you can choose the type of view according to your game view.
FIRST_PERSON_VIEW Cast a ray from the camera to forward direction.
THIRD_PERSON_VIEW Cast a ray from the character to forward direction.
TOP_DOWN_VIEW Cast a ray from the camera to world mouse position.
You can access this class by including the following namespace:
This class inherits from Singleton class and can be called like this:
Here is a list of all the events and methods of this component that can be called:
All of the methods related to this component can be found in the file "BuildingPlacer.cs". If you have any specific questions about the API, feel free to contact us.
Explore fields description in the Inspector by hovering your cursor over them. You can find more information about this here: .