Profiler.BeginSample() performance - does it affect it while not profiling?

Hello,

As topic says - if I will cover my code around with Profiler.BeginSample(methodname) and of course EndSample will it decrease my code performance while having a Developement build but not profiling it?

Of course it always has some overhead. However it shouldn’t be too much to worry about. Though you should make sure to not generate strings dynamically as this would produce additional garbage. Anyways profiling should be added temporarily when you actually debug / profile your game. So if you plan to keep the profiling code in your scripts you may wrap them with preprocessor tags.