Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetValidMethodInfo

Given an object, function name, and a list of argument types; find the method that matches.
Read time 1 minuteLast updated 5 days ago

Definition

GetValidMethodInfo(Object, string, Type[])

Given an object, function name, and a list of argument types; find the method that matches.
public static MethodInfo GetValidMethodInfo(object obj, string functionName, Type[] argumentTypes)

Parameters

Object to search for the method.

functionName

Function name to search for.

argumentTypes

Argument types for the function.

Returns

Type

Description

MethodInfo

GetValidMethodInfo(Type, string, Type[])

Given an object type, function name, and a list of argument types; find the method that matches.
public static MethodInfo GetValidMethodInfo(Type objectType, string functionName, Type[] argumentTypes)

Parameters

objectType

Object type to search for the method.

functionName

Function name to search for.

argumentTypes

Argument types for the function.

Returns

Type

Description

MethodInfo