UAnimInstance::GetLinkedAnimLayerInstanceByClass

Gets the first layer linked instance corresponding to the specified class, optionally if bCheckForChildClass is true, it will check IsChildOf on InClass.