namespace Fusion.Addons.AnimationController { using System.Runtime.CompilerServices; using UnityEngine; public static partial class ComponentAnimationsExtensions { // PUBLIC METHODS [MethodImpl(MethodImplOptions.AggressiveInlining)] public static T GetComponentNoAlloc(this Component component) where T : class { #if UNITY_EDITOR return GameObjectAnimationsExtensions.GetComponentNoAlloc(component.gameObject); #else return component.GetComponent(); #endif } } }