You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9b649bc
Browse filesBrowse the repository at this point in the historyBrowse files
fix: address review of the CLI prefab and config commands (MTT-15298)
- register_prefab treats a prefab as registered when a list entry overrides it,
matching entries by source prefab or prefab id hash as NGO does at runtime.
- audit reports override entries with no target, a target without a root
NetworkObject, or a hash override with a zero source hash.
- audit, list_prefabs and register_prefab handle empty list entries; audit
reports them as a LIST_ENTRY_INVALID warning.
- make_prefab refuses prefabs with child NetworkObjects instead of saving an
unsupported network prefab.
- config set refuses spawn_timeout outside 10-3600 seconds, and NaN or infinite
float values.
result.Notes.Add($"It already has {nested.Length} child NetworkObject(s). Each spawns separately; the new root NetworkObject won't spawn them.");
341
+
// Nested NetworkObjects are only supported in scene objects: a network prefab doesn't spawn them.
342
+
thrownewArgumentException($"{path} has {nested.Length} child NetworkObject(s), and network prefabs don't support nested NetworkObjects. Make each of those children its own network prefab, or remove their NetworkObjects, then run make_prefab again.");
notes.Add("Distributed authority needs a session service (use_cmb_service, e.g. through the Multiplayer Services SDK) or a distributed authority host.");
thrownewArgumentException($"{name} must be between {NetworkConfig.MinSpawnTimeout} and {NetworkConfig.MaxSpawnTimeout} seconds.");
196
198
casenameof(NetworkConfig.ClientConnectionBufferTimeout) or nameof(NetworkConfig.LoadSceneTimeOut) or nameof(NetworkConfig.TimeResyncInterval)when(int)value<1:
197
199
thrownewArgumentException($"{name} must be at least 1.");
add("error","PLAYER_PREFAB_WITHOUT_NETWORKOBJECT",where,$"The player prefab {AssetPathOrName(config.PlayerPrefab)} has no NetworkObject on its root.");
0 commit comments