MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetMethod

Method GetMethod

Source/Editor/Scripting/ScriptType.cs:1415–1425  ·  view source on GitHub ↗

When overridden in a derived class, searches for the method defined for the current type using the specified binding constraints. The string containing the name of the members to get. A bitmask comprised of one or more that specify how the search is conducted.-or- Zero (<see cr

(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)

Source from the content-addressed store, hash-verified

1413 /// <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.-or- Zero (<see cref="F:System.Reflection.BindingFlags.Default" />), to return an empty item.</param>
1414 /// <returns>The member object representing the method defined for the current type that matches the specified name. Returns <see cref="ScriptMemberInfo.Null"/> if failed.</returns>
1415 public ScriptMemberInfo GetMethod(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)
1416 {
1417 if (_managed != null)
1418 {
1419 var managedMember = _managed.GetMethod(name, bindingAttr);
1420 return new ScriptMemberInfo(managedMember);
1421 }
1422 if (_custom != null)
1423 return _custom.GetMembers(name, MemberTypes.Method, bindingAttr).FirstOrDefault();
1424 return ScriptMemberInfo.Null;
1425 }
1426
1427 /// <summary>
1428 /// Registers delegate to be invoked upon script type disposal (except hot-reload in Editor via <see cref="ScriptsBuilder.ScriptsReload"/>). For example, can happen when user deleted Visual Script asset.

Callers 15

InitializeMethod · 0.45
CallEventMethod · 0.45
OnCollectAssetsMethod · 0.45
UpdateMethod · 0.45
CreateMethod · 0.45
OnLightmapsBakeFunction · 0.45
OnBakeEventFunction · 0.45
InitMethod · 0.45
BeforeRunMethod · 0.45
UpdateMethod · 0.45
ExitMethod · 0.45

Calls 1

GetMembersMethod · 0.45

Tested by

no test coverage detected