기술 자료

Unity Engine

Unity Engine

GetValidMethodInfo

Given an object, function name, and a list of argument types; find the method that matches.
읽는 시간 1분최근 업데이트: 한 달 전

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