NAT Traversal for UNET
Provides NAT punch-through, automatic port forwarding, and other useful features on top of Unity's UNET HLAPI networking system.
Util Class Reference

Static Public Member Functions

static DelegateType CreateDelegate< ClassType, DelegateType > (string methodName, BindingFlags flags)
 Creates a delegate that can be used to efficiently call any method on any class. Especially the private and internal stuff that Unity doesn't want us playing with. Calling a delegate is considerably faster than MethodInfo.Invoke() More...
 
static bool HasFlag (this ConnectionType a, ConnectionType b)
 

Member Function Documentation

◆ CreateDelegate< ClassType, DelegateType >()

static DelegateType CreateDelegate< ClassType, DelegateType > ( string  methodName,
BindingFlags  flags 
)
static

Creates a delegate that can be used to efficiently call any method on any class. Especially the private and internal stuff that Unity doesn't want us playing with. Calling a delegate is considerably faster than MethodInfo.Invoke()

This is the most magical thing I've ever written. Look at it, it's complete nonsense.

Type Constraints
DelegateType :class