What is the difference between UnityEngine.Events.Unityaction vs System.Action.
Can i use System.Action in Unity?
Can i use lambda as UnityAction?
Yes to both questions. For example, these two lines of code are formally the same:
System.Action<GameObject> myaction = (gameobj) => { Debug.Log(gameobj.name); } ;
UnityEngine.Events.UnityAction<GameObject> myaction = (gameobj) => { Debug.Log(gameobj.name); } ;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With