Is there any benefit to selecting one of the 4 behaviors on Player Input component?
Better yet, is it required to use this component at all?
But if I have too, are any of the behaviors the go-to solution? Is Send Messages (Default selection) faster than the documentation using Invoke Unity Events, etc.
@Ryiah figured I’d tag you as you’ve used the input system.
Send message tries to invoke the function in all components attached to the same GameObject as the PlayerInput component. Broadcast does the same but takes it one step further by trying to do it with all of the components of the child GameObjects too.
I’m currently using UnityEvents because I know exactly which components should receive the events.
No. It’s just a helper class. I’m currently using it with my contract project because it was the easiest way to get multiplayer working with limited knowledge of the input system. With what I know now though I don’t know if I would use it again. At least without making changes to the class itself.
Thank you. Not sure if Send Message is very efficient then if it tries to call it on All Components, seems like it would be a lot of unnecessary calls. Seems like using events is specific and straight to the point.
I figured with the word it was the same way as the SendMessage in code, which I learned quickly wasn’t great.
But thank you Ryiah
I’m going to try and make my own class to handle it all myself.