Skip to content

Commit 10c4c08

Browse files
committed
tweaked comment to explain event ordering
1 parent 16f46df commit 10c4c08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/InputSystemPluginControl.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ namespace UnityEngine.InputSystem.Editor
1414
public class InputSystemPluginControl
1515
{
1616
//At the time of InitializeOnLoad the packages are compiled and registered
17+
//InitializeOnLoad on classes (see GXDKSupport) and their static constructors are compiled before methods with InitializeOnLoadMethod attribute (like this one)
18+
//Therefore the order of registering platforms from plugins is guaranteed
1719
[InitializeOnLoadMethod]
1820
private static void CheckForExtension()
1921
{
@@ -69,7 +71,7 @@ static bool BuildTargetNeedsPlugin()
6971
/// <remarks>
7072
/// This method is internally called by the InputSystem package extensions to register the PlugIn. This can be called for custom extensions on custom platforms.
7173
/// </remarks>
72-
public static void RegisterPluginPackage()
74+
public static void RegisterPlatform(BuildTarget target)
7375
{
7476
m_pluginPackageRegistered = true;
7577
}

0 commit comments

Comments
 (0)