🏹
Unit Formation
  • WELCOME
    • πŸ‘‹Hello
    • πŸ—ΊοΈRoadmap
    • ⛑️Support & Community
    • πŸŽ“Changelog
  • GETTING STARTED
    • πŸ”ŒImport package
    • βš’οΈAdd unit placement to scene
    • 🚢Add unit movement
    • πŸ“½οΈPosition units in Editor
  • HOW IT WORKS
    • πŸ‘‡Formation Placement
    • πŸ¦₯Unit Formation
    • πŸ“ΊPlacement Visuals
    • πŸ–±οΈInput
    • 🎽Formations
  • Integrations
    • 〽️A* Pathfinding Project
      • πŸ”ŒImport package
      • βš’οΈAdd unit placement to scene
      • 🚢Add unit movement
      • πŸ“½οΈPosition units in Editor
Powered by GitBook
On this page
  • Provided components
  • Customisation
  1. HOW IT WORKS

Input

Description of placements input interface.

Input is required for unit placement to work.

Provided components

Choose which of the components suits your project setup:

  • Option A: ActionInputControl is using Unity's new Input System.

  • Option B: KeyInputControl is using Unity's old Input.

By default it handles mouse right button press and release events, along with current mouse position. On both provided components you can select which button will trigger placement.

Touch screen is not yet supported of out the box. To add it read further.

Customisation

You can customise input for your project or extend your existing input class by using the provided IInputControl interface. This can be done by creating standalone MonoBehaviour using AInputControl directly, which is also used by the provided input control components.

Once your own component has been added to the scene, connect it with UnitPlacement component and you're done!

PreviousPlacement VisualsNextFormations

Last updated 1 year ago

πŸ–±οΈ