bool NetworkInterpolation { get; set; }

robot_2Generated
code_blocksInput

Description

The NetworkInterpolation property of a GameObject determines whether the networked transform of the object will be interpolated. This property is only synchronized for a root network object, meaning it affects how smoothly the object's position and rotation are updated across 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 interpolation to be enabled or disabled for the networked transform.

Example

// Example of setting the NetworkInterpolation property
GameObject myGameObject = new GameObject();
myGameObject.NetworkInterpolation = true; // Enable interpolation

// Check if NetworkInterpolation is enabled
bool isInterpolated = myGameObject.NetworkInterpolation;
if (isInterpolated)
{
    // Perform actions knowing that interpolation is enabled
}