Version: 2020.2

UnityEventBase.GetValidMethodInfo

切换到手册
public static Profiling.FrameDataView.MethodInfo GetValidMethodInfo (object obj, string functionName, Type[] argumentTypes);

参数

obj 用于搜索方法的对象。
functionName 要搜索的函数名称。
argumentTypes 函数的参数类型。

描述

提供了对象、函数名称和参数类型列表;找到匹配的方法。


public static Profiling.FrameDataView.MethodInfo GetValidMethodInfo (Type objectType, string functionName, Type[] argumentTypes);

参数

objectType Object type to search for the method.
functionName 要搜索的函数名称。
argumentTypes 函数的参数类型。

描述

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961