mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix: NetworkIdentity default execution order set to -1. guarantees Awake() initializing all NetworkBehaviours before their Awake is called. [imer, FakeByte]
This commit is contained in:
parent
a0e062af94
commit
3efc917b6e
@ -31,6 +31,9 @@ public struct NetworkIdentitySerialization
|
||||
|
||||
/// <summary>NetworkIdentity identifies objects across the network.</summary>
|
||||
[DisallowMultipleComponent]
|
||||
// NetworkIdentity.Awake initializes all NetworkComponents.
|
||||
// let's make sure it's always called before their Awake's.
|
||||
[DefaultExecutionOrder(-1)]
|
||||
[AddComponentMenu("Network/NetworkIdentity")]
|
||||
[HelpURL("https://mirror-networking.gitbook.io/docs/components/network-identity")]
|
||||
public sealed class NetworkIdentity : MonoBehaviour
|
||||
|
Loading…
Reference in New Issue
Block a user