Answers for "Unity determine what calls a function"

C#
1

find out which function called unity

At the top of your class, add this import:

using System.Diagnostics;


Then in your function:

 string callingFuncName = new StackFrame(1).GetMethod().Name;
Posted by: Guest on August-24-2020

Code answers related to "Unity determine what calls a function"

C# Answers by Framework

Browse Popular Code Answers by Language