Skip to content

Commit a5719db

Browse files
update
Adding [MethodImpl(MethodImplOptions.AggressiveInlining)] attribute to the T[] FindObjectsByType<T>() method.
1 parent c8f54c9 commit a5719db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Core/FindObjects.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
using System.Runtime.CompilerServices;
12
using UnityEngine;
23

34
namespace Unity.Netcode
45
{
56
internal static class FindObjects
67
{
8+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
79
public static T[] FindObjectsByType<T>() where T : Object
810
{
911
#if NGO_FINDOBJECTS_NOSORTING

0 commit comments

Comments
 (0)