Tag: C#
All the articles with the tag "C#".
Subscribing to InputAction Directly: The Lifetime of Delegate-Based Input
Handling input by subscribing to InputAction in code instead of using PlayerInput's Behavior. Why subscribe and unsubscribe belong in a pair, who actually enables the action, and what looking actions up by string costs you.
Unity's PlayerInput: One Behavior Setting Rewrites Your Code
PlayerInput's API reference is a list of properties, which is not what you need when you first attach it. Why the four Behavior options demand different code, why callbacks fire more than once, and whether a single-player project needs this component at all.