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
/// The <see cref="GameObject"/> containing a <see cref="NetworkObject"/> to which the instantiation data will be assigned. The <see cref="NetworkObject.GlobalObjectIdHash"/> must match a handler that was previously registered.
81
+
/// </param>
82
+
/// <param name="instantiationData">The custom instantiation data to serialize and assign.</param>
/// Serializes and assigns custom instantiation data to a <see cref="NetworkObject"/> for use during network spawning.
93
+
/// The <see cref="NetworkObject"/> must have a registered prefab handler that implements <see cref="NetworkPrefabInstanceHandlerWithData{T}"/>.
94
+
/// </summary>
95
+
/// <typeparam name="T"> The type of instantiation data, which must be a struct implementing <see cref="INetworkSerializable"/>.</typeparam>
96
+
/// <param name="networkObject">
97
+
/// The <see cref="NetworkObject"/> to which the instantiation data will be assigned. The <see cref="NetworkObject.GlobalObjectIdHash"/> must match a handler that was previously registered.
98
+
/// </param>
99
+
/// <param name="instantiationData">The custom instantiation data to serialize and assign.</param>
Debug.LogWarning($"[InstantiationData] Failed instantiate with data: no compatible handler found for object hash {networkPrefabAssetHash}. Instantiation data will be dropped.");
296
+
Debug.LogWarning($"[InstantiationData] Failed instantiate with data: no compatible data handler found for object hash {networkPrefabAssetHash}. Instantiation data will be dropped.");
0 commit comments