reflection-method-call

Installation
SKILL.md

Method C# / Call

Call C# method. Any method could be called, even private methods. It requires to receive proper method schema. Use 'reflection-method-find' to find available method before using it. Receives input parameters and returns result.

Match levels (apply to typeName, MethodName, Parameters)

  • typeNameMatchLevel / methodNameMatchLevel (default 1 — contains ignoring case): 0 ignore filter, 1 contains-ic, 2 contains-cs, 3 starts-with-ic, 4 starts-with-cs, 5 equals-ic, 6 equals-cs.
  • parametersMatchLevel (default 2 — equals): 0 ignore filter, 1 count matches, 2 equals.

Inputs

  • targetObject (optional) — for instance methods. When null, a new instance is created from the declaring type. Required shape: { type, value } (value is deserialized to type).
  • inputParameters (optional) — list of { type, name, value }. Names are enhanced against the resolved method signature if omitted.
  • executeInMainThread (default true) — Unity API calls should keep this true; set false only for thread-safe pure logic.

How to Call

Installs
1
GitHub Stars
4.6K
First Seen
Aug 21, 2026