Animal Controller
📥 Integrations📑 Changelog✅Social
  • 🤝Welcome to Malbers Animations Assets
  • 🌐Discover all my Assets
  • 💫What's New
  • 🌀Upcoming assets
  • 📋Changelog
  • ↗️Upcoming Changelog
  • 🛣️Road Map
  • ✍️End User Licence Agreement
  • 🌟Features
  • Improve Performance Tricks
  • 😓Know Limitations so far
  • 📥Downloads
  • QuickStart
    • 📖Guide to use All Malbers Assets with (AC)
    • 🔼Upgrade to URP
    • 🔼Upgrade to HDRP
    • 💔Common Issues
    • 🔔Tips and Tricks
  • Guides and Tutorials
  • 📺YouTube Tutorials
    • 📺Video Tutorials (On Queue)
  • 📱Mobile Setup Guide
    • Mobile Joystick
  • 🧐How to: Animal Controller
    • 🔹Play a Mode while Moving
    • 🔹Create and configure a new mode
    • 🔊Adding Sound Effects
    • 🔹Rebone Mesh Tutorial (Skin Mesh is Missing)
    • 🔹Add Movement with Non RootMotion Animations
    • 🔹Fetch a ball
    • 🔹Set up Timeline
    • 🔹Make Animal flee when see the animal Player
    • 🔹Animal Controller for Humanoids
    • Create a Shootable Weapon From Scratch
    • ⚔️How to Fix weapons offset and values (Bow, Pistol)
    • ✨Add a Effect to the Effect Manager
    • 🕹️Connect Inputs to the Controller
    • Modify the controller with a Stat
    • Use the Modify Stat Component
    • 📡Use a MEvent and MEvent Listeners
    • 💎Change from Faceted to Smooth poly art Animals
    • ⁉️Listen when an Mode starts or ends
  • 🐎How to: Horse Animset Pro
    • 🐴Call the Mount
    • 🤠Change Meshes for the Rider
    • 🏇Make any animal mountable
  • 🕺Strafing
  • Main Components
    • 🐺MAnimal Controller
      • General
        • Pivots
      • Speeds
      • 🔷States
        • 🕴️Idle
        • 🏃‍♂️Locomotion
        • 🌠Fall
        • 🤾‍♀️Basic Jump
        • 🤾‍♂️Root Motion Jump
        • 🐟Swim
        • 🐊UnderWater
        • 🧗‍♂️Climb
        • 🧗‍♂️Ledge Grab
        • 🦅Fly
        • 🪂Glide
        • 🧗Wall Run
        • 🧗Wall Run Vertical
        • ⛷️Slide
        • ☠️Death
        • ☠️Death Ragdoll
        • 🆕Creating a new State
      • 🟩Modes
        • 🟩Mode Behavior
        • 🟩Mode Sequence
      • 🅾️Stances
      • Advanced
      • Animal Modifiers
      • Events
      • Debug
      • Animal Animator Behaviors
      • Methods and Properties
    • 🎮Malbers Input & MInput
      • Methods and Properties
    • 🤖AI
      • AI Animal Control
      • MWayPoint
      • Wander Area
      • AI Target
      • Animal Brain
        • AI States
        • Tasks
          • General - Chance
          • General - Empty
          • General - Invoke Event
          • General - Send Message
          • General - Play Audio
          • General - Quick Align
          • General - Reaction
          • General - Set Look At Aim
          • General - Set Stat
          • General - Wait
          • Animal - Set Speed
          • Animal - Play Mode
          • Animal - Set/Play State
          • Animal - Set Stance
          • Animal - Set Strafe
          • Movement - Move Stop
          • Movement - Patrol
          • Movement - Set Destination
          • Movement - Set Target
          • Variables - Set Var Listener
          • Weapons - Weapon Tasks
        • Decisions
          • General - AND
          • General - Check Stat
          • General - Compare Stats
          • General - Look
          • General - OR
          • General - Is Task Done?
          • General - Wait
          • Movement - Has Arrived
          • Movement - Check Target
          • Animal - Check Mode
          • Animal - Check Stance
          • Animal - Check State
          • Variables - Check Scriptable Variable
          • Variables - Check Transform Var
          • Variables - Check Var Listener
          • Runtime Set - Is Target in Runtime Set
      • 📌Point Click
    • 🧨Reactions
    • 📶Combo Manager
    • ⚔️Weapon Manager
      • 🛡️MWeapon [General] Properties
      • 🛡️MWeapon [Damage] Properties
      • 🛡️MWeapon [IK] Properties
      • ⚔️MMelee
      • 🔫MShooteable
      • 🏹Bow
    • 〰️Path Constraint
      • 〰️MPath
      • 〰️Path Link (Straight)
      • 〰️Path Link (Cinemachine Path)
      • 〰️Path Creator(Sebastian Lague)
    • Speed Ground Changer
  • Scriptable Architecture
    • 💠Scriptables
      • 🔹Bool Var
      • 🔹Int Var
      • 🔹Float Var
      • 🔹String Var
      • 🔹ValueToString
      • 🔢Variable Listeners & Comparers
      • 🔰IDs
      • 🎫Tags
      • 🪝Transform Hook
      • 📣MEvents
      • 📣MEvent Listener
      • 📦Runtime gameobjects
    • 🔤MLocal Variables
  • Secondary Components
    • ⚔️MDamager
      • 🐾MAttack Trigger
      • 🐾Attack Trigger Behavior
      • 🏉MProjectile
      • 🏹Projectile Thrower
      • 🤯MExplosion
    • 🤕MDamageable
    • 🧊Zones
      • Public Methods
    • ✊Pick Up - Drop
    • ✊Pickable
    • 🚩Respawner
    • 🚩Respawner NPC
    • 🚩Simple Respawner
    • 🏁CheckPoint
    • IK Manager
      • IK Processors
      • Weight Processors
  • Global Components
    • 🧡Stats
      • 🔸Stat Modifier
      • 🔸Modify Stat <Component>
      • 🔸Modify Stat <Asset>
      • 👨‍💻Public Methods
    • Animator Behaviours
      • Message Behaviour
      • Random Behaviour
      • Is Kinematic Behaviour
      • Sound Behaviour
      • Rigid Constraint Behaviour
    • 🟩Trigger Proxy
    • 🔌Interactable
    • ⚡Interactor
    • ⁉️Conditions
    • 🎥Free Look Camera
    • 🎥Cinemachine
    • UI
      • Unity Utils
  • Riding System (HAP)
    • Horse Animset Pro (HAP) Riding System
    • The Art of (HAP)
    • Mount
      • Methods and Properties
    • MRider
      • Methods and Properties
    • Mount Triggers
    • Mount Points
  • Utilities
    • Material Changer
    • Active Meshes
    • Effect Manager
    • Effect Behavior
    • Animator Event Sounds
    • Blend Shapes
      • Blend Shape Preset
    • Look At
    • 🏹Aim
    • 🎯Aim Target
    • 🎯Lock On Target
    • 🐾Steps Manager
    • 🐾Step Trigger
    • 🔗Mode Align
    • 🔗Aligner
    • Component Selector
    • MAnimalAnimatorSync
    • Multiple Time Checker
    • MAnimalAnimatorSync
  • Annex
    • 🗃️Integrations
      • General HAP Integration
      • Rewired
      • Invector Templates
        • Invector Weapon Settings
      • Animals Controller + Invector
      • Ootii's Motion Controller
      • Opsive Ultimate Character Controller (UCC 3.03)
      • Opsive Ultimate Character Controller (UCC 3.08) Generic
      • AStar Pathfinding
      • Unity Input System (NEW)
        • New Input Link [Old Versions]
      • Game Creator
      • Game Kit Controller
    • Contact
    • 🤔FAQ
    • Refund Policy
  • Games using Malbers Animations
  • Interfaces
    • IAITarget
    • IWayPoint
    • IAIControl
    • IAim
    • IAlign
    • IGravity
    • IInteractor
  • ULTIMATE SELECTOR
    • Overview
    • Selector Manager
    • Selector Editor
    • Selector Controller
    • Selector Item
    • Selector UI
    • Selector Data
    • Changelog (Selector)
  • 🎒Malbers Inventory Add-On
    • Overview
      • Compatibility Matrix
      • Roadmap
      • Update Notes
  • Updating from v1.1.1 to v1.2 Instructions
  • Basic Setup Instructions
    • Creating a new Item
      • Adding Buffs/Debuffs to Items
      • Setting up Item Reactions
      • Custom Rarities
    • Setting up Item/Inventory Types
    • Set up the Pick/Drop Component
    • Setting up the Notifications
    • Setting up the Item Info panel
  • Inventory Set
    • Events
  • Inventory Master
  • Notification Manager
    • Notification Child
    • Events
  • Save/Load System
  • Item Spawner
  • Storage Chests
    • Chest Inventory
    • Chest Inventory UI
  • Using Armour
  • Shop System
    • Shop
    • Shop UI Manager
  • Cooking System
    • Create a new Recipe
  • UI Manager
  • Hotbar
Powered by GitBook
On this page
  • Integration Package: Integration Drive Folder
  • Latest Version: 2.0.2a
  • Latest Version: 2.0.2
  • Input Action Types for Animal Controller
  • Axis values
  • Buttons
  • Triggers
  • Integration Steps
  • 1. Install the new Input System from the Package Manager Window
  • 2. Import the integration Package from the Integration Drive Folder
  • 3. Select any Prefab/animal the Malbers Input/MInput component.
  • 4. Add the MInput Link Component to your character
  • 5. Add a Player Input.
  • 6. Add an Action Input Map
  • 7. Select the Active Action Map to Find the Buttons
  • 8. Connect the Inputs to the Animal Controller
  • Camera
  • Input Link UI
  • Overview
  • Rider
  • Gameplay Connections
  • Riding Connections
  • Horse

Was this helpful?

  1. Annex
  2. 🗃️Integrations

Unity Input System (NEW)

PreviousAStar PathfindingNextNew Input Link [Old Versions]

Last updated 4 months ago

Was this helpful?

From AC 1.4.7 and up. Unity New Input System is the Default system. You don't need to install the external version


Integration Package: Integration Drive Folder

Latest Version: 2.0.2a

  • Added: OnMoveAxis Method from IInputSouce Interface.

Latest Version: 2.0.2

  • Added: Ignore Horizontal, Vertical, UpDown Axis

  • Improved: Reading the axis from Move Context.

  • Added: OnInput Enabled and Disabled send the Player Index

  • Minor Editor fixes

New Input Link [Old Versions]

Input Action Types for Animal Controller

These are the types of input values that the controller will recognize.

Axis values

Use this Input type for Axis movement (Player Movement and Camera Movement)

If you are going to use Axis type in other logic besides Player Movement or Camera Locomotion

Use the Vector2 value on the interaction type:

Buttons

Use this Input type for all button interactions (Jumps, Actions, Sprint, etc)

Triggers

Triggers on your Gamepad need to be set as Value.

The Interaction type for Triggers needs to be set to Float

Integration Steps

1. Install the new Input System from the Package Manager Window

Go to Window -> Package Manager

Install the latest version of the Input System package.

Unity will ask you to restart the Editor to install correctly the Input System.

2. Import the integration Package from the Integration Drive Folder

INTEGRATION <DRIVE> FOLDER

Download and Install the Integration package on your project.

3. Select any Prefab/animal the Malbers Input/MInput component.

Those Malbers Input/MInput Components, need to be replaced with the new MInput Link. But first, we need to check all the connections the old inputs can have.

The Animal Controller makes automatic connections with States and Modes using the Name of the Input.

For example for the State Jump the Input Name is "Jump"

4. Add the MInput Link Component to your character

Add the component to the same gameobject the Animal Controller is.

5. Add a Player Input.

Add Unity Player Input Component and set it as reference for the Input Link

6. Add an Action Input Map

By default for Malbers Animals and creatures you can use the <Malbers Input> Action asset, but you can use your own Input Action Asset.

Add your Input Map to the Player Input Component

7. Select the Active Action Map to Find the Buttons

Add your Default Action Map so you can connect those inputs to the Animal Controller

After selecting the Active Action Map Click Find Buttons.

All the parameters will be filled automatically. with all the Inputs that are set as <Button> Type.

Move and UpDown Inputs will be set on their respective parameters.

You can add other inputs manually by simply creating a new element:

8. Connect the Inputs to the Animal Controller

By default, all the Inputs with a Name that matches the States and Modes are connected automatically with the Animal Controller.

For example: the Jump State has an Input<string> value to find its Input so it will be connected automatically with the Jump Input:

Just like States, Modes has their Input<string> Value to connect automatically to the input source:

But other features like Sprint, Speed Up, Speed Down, they need to be connected manually.

As stated in Step 3. Do not remove yet just yet the MalbersInput/MInput component.

Check the connections all the Inputs have and do them on the New MInputLink component.

E.g. Sprint is connected on the Input Changed Event with Animal.Sprint Interaction [Press]

E.g. SpeedUp is connected on the Input Down Event with Animal.SpeedUpInteraction [Down]

E.g.: In case of the Rider in HAP the Default Action Map should be Gameplay:

E.g.: In case of the Horse in HAP the Default Action Map should be "Riding". So the horse will be only moving when that Action map is activated by the rider when he finish mounting

IMPORTANT: After all connections are made you will need to remove the Old MalbersInput/MInput component.

Camera

Instead of using the Default Virtual cameras

Use instead the new Prefab located here:

This prefab has already all the connections done for the new Input system. The MInput Look Component is using the correct Input Action References for moving the camera

Input Link UI

Overview

This component will Invoke a String Event with the Display value of an Input Action, when the Control Scheme changes.

That Sprint Value can be connected to any UI Text to display the right UI Value for the Input.

Do that for all the UI Buttons.

Rider

For Horse Animset Pro the Rider and the Horse have Different Action maps

Use instead Malbers Input HAP. You can always modify it to your needs.

In the case of the Rider, you will need to change the Active Action Maps while Riding.

When the Rider Finish Mounting the Action Map is changed to "Riding" will be changed to Riding (Using the event MRider.OnMountEnd()

When the Rider Finish Dismounting the Action Map is changed back to "Gameplay" will be changed to Riding (Using the event MRider.OnDismountEnd()

Gameplay Connections

Always check the old Malbers Input connections to apply it to the new MInput Link inputs

Here are the Malbers Input HAP "Gameplay" Input Action connections. Remember to check the Interaction on each Input Action.

Move

Leave the Connection to Gameplay/Move Input Action

Jump

Is Connected automatically with the Animal Controller with the Jump State.

Sprint

Interact

Mount

Riding Connections

Here are the Malbers Input HAP, "Riding" Map, Input Action connections. Remember to check the Interaction on each Input Action. This will be the Inputs

Move and UpDown

Clear the Connections with Move and UpDown since they will be used on the Animal Mount Instead.

Aim

Attack1

Dismount

Inventory 1

Inventory 2

Inventory 3

Inventory 4

Reload

Horse

In case of the Horse instead of using the "Gameplay" Action Map as the Default and connection, will be using the "Riding" Action Map. That way all Horse Movement will be active only when the Rider finish mounting.

You can use all of the inputs or some of them. Is up to you. :)

Jump

Jump is connected Automatically with the Animal Controller

Sprint

Attack1

Attack1 is connected automatically with the Attack1 Mode. Is recommended to be disabled if the rider is using weapons

Interact

No connection here.. you can add the Action Mode Input name here if you like

Strafe

Speed Up

Speed Down

415KB
Input System Link 2.0.2a.unitypackage
207KB
Unity Input System Link v2.0.2.unitypackage
Old Malbers Input component that uses the Old Input Manager
The Mount UI Changes to [ F ] key or [ Y ] button on the gamepad