Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityEventBase.GetValidMethodInfo

Switch to Manual
public static function GetValidMethodInfo(obj: object, functionName: string, argumentTypes: Type[]): MethodInfo;

Parameters

obj Object to search for the method.
functionName Function name to search for.
argumentTypes Argument types for the function.

Description

Given an object, function name, and a list of argument types; find the method that matches.