Skip to content

Commit 579c007

Browse files
Fix GameObjectSelfInjector execution order
1 parent cf43b2a commit 579c007

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/Reflex/Components/GameObjectSelfInjector.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using System;
2+
using Reflex.Core;
23
using Reflex.Extensions;
34
using Reflex.Injectors;
45
using UnityEngine;
56

67
namespace Reflex.Components
78
{
8-
[DefaultExecutionOrder(int.MinValue + 1000)]
9+
[DefaultExecutionOrder(SceneScope.ExecutionOrder + 100)] // +100 instead of +1 to leave room for other user custom components
910
internal sealed class GameObjectSelfInjector : MonoBehaviour
1011
{
1112
[SerializeField] private InjectionStrategy _injectionStrategy = InjectionStrategy.Recursive;

0 commit comments

Comments
 (0)