Description
The NetworkInterpolation
property of a GameObject
determines whether the networked transform of the object will be interpolated. This property is only synchronized for root network objects, meaning it affects how smoothly the object's position and rotation are updated over the network.
Usage
To use the NetworkInterpolation
property, simply access it on a GameObject
instance and set it to true
or false
depending on whether you want the networked transform to be interpolated.
Example
// Example of setting the NetworkInterpolation property
GameObject myGameObject = new GameObject();
// Enable network interpolation
myGameObject.NetworkInterpolation = true;
// Disable network interpolation
myGameObject.NetworkInterpolation = false;