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 applies to the top-level object in a networked hierarchy.

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();
myGameObject.NetworkInterpolation = true; // Enable interpolation for networked transform

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