@@ -365,7 +365,7 @@ private void CheckForInScenePlaced()
365365#if UNIFIED_NETCODE
366366 [ HideInInspector ]
367367 [ SerializeField ]
368- internal GhostAdapter GhostAdapter ;
368+ internal GhostObject GhostObject ;
369369
370370 [ HideInInspector ]
371371 [ SerializeField ]
@@ -388,16 +388,16 @@ private void OnApplicationUpdate()
388388 internal void UnifiedValidation ( )
389389 {
390390 NetworkObjectBridge = GetComponent < NetworkObjectBridge > ( ) ;
391- GhostAdapter = GetComponent < GhostAdapter > ( ) ;
391+ GhostObject = GetComponent < GhostObject > ( ) ;
392392
393- HasGhost = GhostAdapter != null ;
393+ HasGhost = GhostObject != null ;
394394 if ( HasGhost )
395395 {
396396 //TODO: Needs to be validated once develop-2.0.0 is merged.
397397 if ( InScenePlaced )
398398 {
399399 Debug . LogError ( $ "This experimental version of NGO does not support hybrid in-scene placed objects.") ;
400- Destroy ( GhostAdapter ) ;
400+ Destroy ( GhostObject ) ;
401401 HasGhost = false ;
402402 return ;
403403 }
@@ -420,7 +420,7 @@ public void ApplyScale(Vector3 scale)
420420 {
421421 if ( HasGhost )
422422 {
423- GhostAdapter . ApplyPostTransformMatrixScale ( scale ) ;
423+ GhostObject . ApplyPostTransformMatrixScale ( scale ) ;
424424 }
425425 }
426426#endif
@@ -3043,7 +3043,7 @@ internal bool InitializeChildNetworkBehaviours()
30433043 {
30443044#if COM_UNITY_MODULES_PHYSICS || COM_UNITY_MODULES_PHYSICS2D
30453045 // TODO-UNIFIED: This needs to be updated to make it "opt-in".
3046- // If the GhostAdapter is not configured for prediction but is still using a Rigidbody, then go ahead and remove it on
3046+ // If the GhostObject is not configured for prediction but is still using a Rigidbody, then go ahead and remove it on
30473047 // the client side to improve performance by default.
30483048 // TODO-UNIFIED: Determine if recent unified physics updates does not require checking for prediction.
30493049 if ( NetworkRigidbodies != null )
@@ -3084,8 +3084,8 @@ internal bool InitializeChildNetworkBehaviours()
30843084#if UNIFIED_NETCODE_DESTROY
30853085 // When hybrid spawning, the transform is synchronized by the GhostObject.
30863086 // As a convenience, we remove and destroy all NetworkTransforms.
3087- // TODO-Parenting-Related-Area: We need to replicate this functionality in a GhostAdapter
3088- // Possibly use a "Synchronize" property and display only on children of a root parent GhostAdapter .
3087+ // TODO-Parenting-Related-Area: We need to replicate this functionality in a GhostObject
3088+ // Possibly use a "Synchronize" property and display only on children of a root parent GhostObject .
30893089 if ( NetworkTransforms != null )
30903090 {
30913091 NetworkManager . Log . Warning ( new Logging . Context ( LogLevel . Developer , $ "[]{ name } Hybrid spawned objects do not support { nameof ( NetworkTransform ) } and " +
@@ -3896,7 +3896,7 @@ private void OnDisable()
38963896 Debug . Log ( "Disabled!" ) ;
38973897 if ( IsSpawned || HasGhost )
38983898 {
3899- if ( HasGhost && GhostAdapter . IsPrefab ( ) )
3899+ if ( HasGhost && GhostObject . IsPrefab ( ) )
39003900 {
39013901 return ;
39023902 }
@@ -3933,7 +3933,7 @@ private void InitGhost()
39333933 return ;
39343934 }
39353935
3936- if ( ! HasGhost || ! NetworkObjectBridge || GhostAdapter . IsPrefab ( ) )
3936+ if ( ! HasGhost || ! NetworkObjectBridge || GhostObject . IsPrefab ( ) )
39373937 {
39383938 // Nothing to register
39393939 return ;
@@ -3944,7 +3944,7 @@ private void InitGhost()
39443944 {
39453945 Debug . Log ( $ "[{ nameof ( NetworkObject ) } ] GhostBridge { name } detected and instantiated.") ;
39463946 }
3947- if ( GhostAdapter . WasInitialized && NetworkObjectBridge . NetworkObjectId . Value != 0 )
3947+ if ( GhostObject . WasInitialized && NetworkObjectBridge . NetworkObjectId . Value != 0 )
39483948 {
39493949 NetworkManager . SpawnManager . GhostSpawnManager . RegisterGhostBridge ( NetworkObjectBridge . NetworkObjectId . Value , this ) ;
39503950 }
0 commit comments