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):0ignore filter,1contains-ic,2contains-cs,3starts-with-ic,4starts-with-cs,5equals-ic,6equals-cs.parametersMatchLevel(default 2 — equals):0ignore filter,1count matches,2equals.
Inputs
targetObject(optional) — for instance methods. When null, a new instance is created from the declaring type. Required shape:{ type, value }(value is deserialized totype).inputParameters(optional) — list of{ type, name, value }. Names are enhanced against the resolved method signature if omitted.executeInMainThread(defaulttrue) — Unity API calls should keep this true; set false only for thread-safe pure logic.