Skip to content

Filtering out certain methods by name from trace #458

Closed Answered by RevealedSoulEven
RevealedSoulEven asked this question in Q&A
Discussion options

You must be logged in to vote
const excludedMethodNames = ["OnStartGame","OnUpdate","Awake"];
// @ts-ignore
Il2Cpp.trace(true)
    .classes(classobject)
    .filterMethods(method => {
        return !excludedMethodNames.some(keyword => method.name.includes(keyword));
    })
    .and()
    .attach();

To those who'll require it in future. Please give a like😊

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RevealedSoulEven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant