mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-30 21:17:09 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			898 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			898 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using UnityEngine;
 | |
| 
 | |
| namespace Mirror.Experimental
 | |
| {
 | |
|     /// <summary>
 | |
|     /// A component to synchronize the position of child transforms of networked objects.
 | |
|     /// <para>There must be a NetworkTransform on the root object of the hierarchy. There can be multiple NetworkTransformChild components on an object. This does not use physics for synchronization, it simply synchronizes the localPosition and localRotation of the child transform and lerps towards the received values.</para>
 | |
|     /// </summary>
 | |
|     [AddComponentMenu("Network/Experimental/NetworkTransformChildExperimentalExperimental")]
 | |
|     [HelpURL("https://mirror-networking.gitbook.io/docs/components/network-transform-child")]
 | |
|     public class NetworkTransformChild : NetworkTransformBase
 | |
|     {
 | |
|         [Header("Target")]
 | |
|         public Transform target;
 | |
| 
 | |
|         protected override Transform targetTransform => target;
 | |
|     }
 | |
| }
 | 
