Input System Modifiers Explained | ButtonWithOne/TwoModifiers and Custom Composites - Unity @samyam
Input System Modifiers Explained | ButtonWithOne/TwoModifiers and Custom Composites - Unity  @samyam
Uploaded August 2021 | Updated September 2026, 1 week ago
Learn what Unity's Input System Modifiers are, how to use them, how to dynamically make and use them, and how to make a custom modifier or custom composite!

ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
sam-yam.itch.io/samyam-full-source-code-to-all-videos

📥 Get the Code📥
patreon.com/posts/54786093

🤝 Support Me 🤝
Patreon: patreon.com/samyg
Donate: ko-fi.com/samyam

In the video I go over what are modifiers and then add example ones to an input action asset. I go over the ButtonWithOneModifier and ButtonWithTwoModifiers. Then I show a visual example of the modifiers and how they work with the input event system. I'll then go over making an action with a modifier in code dynamically, and making a custom composite or modifier through code.

►🔗 Relevant Video Links 🔗
ᐅModifier Documentation: docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/ActionBindings.html#button-with-one-modifier
ᐅButtonWithOneModifier:
*Doc: docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.Composites.ButtonWithOneModifier.html
*Code: github.com/Unity-Technologies/InputSystem/blob/bcc89c252897385f1adb8e3fc320e7a7c442862b/Packages/com.unity.inputsystem/InputSystem/Actions/Composites/ButtonWithOneModifier.cs

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!

😎 Other Cool Unity Assets 😎
ᐅPeek - Editor Toolkit: assetstore.unity.com/packages/tools/utilities/peek-editor-toolkit-149410
ᐅEditor Console Pro: assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889
ᐅRainbow Folders 2: assetstore.unity.com/packages/tools/utilities/rainbow-folders-2-143526

►⏱️ Timestamps ⏱️
0:00 Intro
0:08 Input Action Asset
0:18 What is a Modifier?
1:06 ButtonWithOneModifier
2:20 ButtonWithTwoModifiers
2:55 Visual Example
3:33 Code for Visual Example
3:56 Add Modifiers Dynamically
4:47 Custom Composite
9:15 Outro

💖💖THANK YOU TO ALL MY PATRONS 💖💖

❯❯❯ My Links ❮❮❮
💗 Patreon 💗
patreon.com/samyg
💬 Discord Server 💬
discord.gg/mj3dSnmaZc
🐦 Twitter 🐦
twitter.com/samyam_utube
📚 Facebook 📚
facebook.com/samyam.youtube
🎵 Music 🎵
Ambient Gold
streambeats.com
👍 Like and Subscribe! 👍

🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
amazon.com/shop/samyam

#madewithunity #gamedev #unity
Input System Modifiers Explained | ButtonWithOne/TwoModifiers and Custom Composites - UnityLearn Unreal Engine 5 with me! Parkour System Live Stream #3Gabe Newell just changed the game, againchoose a game engine #gamedev #indiegame #indiedevUnity Tools You CANT Live WithoutJAW DROPPING Unity New Years Sale!! 50% OFF 8000+ ASSETS!Parallax Effect in Unity Tutorial - Infinite Scrolling BackgroundSetting Up Unity Hub - How to make a game in Unity Pt. 1 #ShortsSwitching Action Maps in Unitys Input SystemHow to EASILY Build to an Android Phone in UnityLearn Unreal Engine 5 with me! Parkour System Live Stream #2I listened to the haters #indiegame #gamedev
samyam |

Input System Modifiers Explained | ButtonWithOne/TwoModifiers and Custom Composites - Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER