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

Method Invoke

Source/Editor/Scripting/ScriptType.cs:701–710  ·  view source on GitHub ↗

Invokes the method on a specific object (null if static) using the provided parameters. The instance of the object to invoke its method. Use null for static methods. List of parameters to provide. The value returned by the method.

(object obj = null, object[] parameters = null)

Source from the content-addressed store, hash-verified

699 /// <param name="parameters">List of parameters to provide.</param>
700 /// <returns>The value returned by the method.</returns>
701 public object Invoke(object obj = null, object[] parameters = null)
702 {
703 if (parameters == null)
704 parameters = Array.Empty<object>();
705 if (_managed is MethodInfo methodInfo)
706 return methodInfo.Invoke(obj, parameters);
707 if (_managed != null)
708 throw new NotSupportedException();
709 return _custom.Invoke(obj, parameters);
710 }
711 }
712
713 /// <summary>

Callers 15

CreatorMethod · 0.45
OnConvertToParameterMethod · 0.45
CanConnectToMethod · 0.45
CreateMethod · 0.45
InitMethod · 0.45
BeforeRunMethod · 0.45
UpdateMethod · 0.45
ExitMethod · 0.45
GetMainWindowMethod · 0.45
CanReloadScriptsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected