// UltEvents // Copyright 2020 Kybernetik // #if UNITY_EDITOR using UnityEditor; using UnityEngine; namespace UltEvents.Benchmarks { /// [Editor-Only] /// A simple performance test which calls in and logs the amount of time it /// takes. /// [AddComponentMenu("")]// Don't show in the Add Component menu. You need to drag this script onto a prefab manually. [HelpURL(UltEventUtils.APIDocumentationURL + "/Behchmarks/EventBenchmarkBase")] public abstract class EventBenchmarkBase : MonoBehaviour { /************************************************************************************************************************/ private void Awake() { var start = EditorApplication.timeSinceStartup; Test(); Debug.Log(EditorApplication.timeSinceStartup - start); } /************************************************************************************************************************/ /// Called by . protected abstract void Test(); /************************************************************************************************************************/ } } #endif