I'm validating H1M4W4R1 AOP project (https://github.com/H1M4W4R1/Unity-Aspect-Oriented-Programming/) with a non-intrusive profiling module.
The original project was taken from the description of this Unity video: https://www.youtube.com/watch?v=2qeNu2QApAM&ab_channel=Unity, so then, I added H1M4W4R1 repo as a submodule.
The code I added is under Assets/Scripts/Profiling. Also, I had to decorate the target methods in Assets/Scripts/Game/Movement.cs and Assets/Scripts/Game/ParticleCollision.cs.
- Open the project
- Open the profiler (ctrl + 7)
- From the top-left dropdown menu (in the profiler window), add "Player Stats"
- Enable profiling recording in play mode
- Enter play mode
- move with 'a', 'd' and shoot with 'space'.
- Note the information drawn in the profiler "player stats" module.