Photon Fusion
2.1.1
The NetworkBehaviourBufferInterpolator struct is used to interpolate between two NetworkBehaviourBuffer instances. This is a read-only, ref struct, meaning it cannot be boxed and it can only be used on the stack. More...
Public Member Functions | |
| float | Angle (NetworkBehaviour.PropertyReader< Angle > property) |
| Gets the interpolated angle of a property. | |
| float | Angle (string property) |
| Gets the interpolated angle of a property. | |
| bool | Bool (NetworkBehaviour.PropertyReader< bool > property) |
| Gets the interpolated boolean value of a property. | |
| bool | Bool (string property) |
| Gets the interpolated boolean value of a property. | |
| float | Float (NetworkBehaviour.PropertyReader< float > property) |
| Gets the interpolated float value of a property. | |
| float | Float (string property) |
| Gets the interpolated float value of a property. | |
| int | Int (NetworkBehaviour.PropertyReader< int > property) |
| Gets the interpolated integer value of a property. | |
| int | Int (string property) |
| Gets the interpolated integer value of a property. | |
| NetworkBehaviourBufferInterpolator (NetworkBehaviour nb) | |
| Constructor for the NetworkBehaviourBufferInterpolator struct. | |
| NetworkBool | NetworkBool (NetworkBehaviour.PropertyReader< NetworkBool > property) |
| Gets the interpolated NetworkBool value of a property. | |
| NetworkBool | NetworkBool (string property) |
| Gets the interpolated NetworkBool value of a property. | |
| Quaternion | Quaternion (NetworkBehaviour.PropertyReader< Quaternion > property) |
| Gets the interpolated Quaternion value of a property. | |
| Quaternion | Quaternion (string property) |
| Gets the interpolated Quaternion value of a property. | |
| T | Select< T > (NetworkBehaviour.PropertyReader< T > property) |
| Selects the interpolated value of a property. | |
| T | Select< T > (string property) |
| Selects the interpolated value of a property by its name. | |
| Vector2 | Vector2 (NetworkBehaviour.PropertyReader< Vector2 > property) |
| Gets the interpolated Vector2 value of a property. | |
| Vector2 | Vector2 (string property) |
| Gets the interpolated Vector2 value of a property. | |
| Vector3 | Vector3 (NetworkBehaviour.PropertyReader< Vector3 > property) |
| Gets the interpolated Vector3 value of a property. | |
| Vector3 | Vector3 (string property) |
| Gets the interpolated Vector3 value of a property. | |
| Vector4 | Vector4 (NetworkBehaviour.PropertyReader< Vector4 > property) |
| Gets the interpolated Vector4 value of a property. | |
| Vector4 | Vector4 (string property) |
| Gets the interpolated Vector4 value of a property. | |
Static Public Member Functions | |
| static implicit | operator bool (NetworkBehaviourBufferInterpolator i) |
| Implicit conversion operator to bool. This allows a NetworkBehaviourBufferInterpolator instance to be used in conditions directly. | |
Public Attributes | |
| readonly float | Alpha |
| The interpolation factor, ranging from 0 to 1. This value is used to interpolate between the "from" and "to" states. | |
| readonly NetworkBehaviour | Behaviour |
| The NetworkBehaviour instance that this interpolator is associated with. | |
| readonly NetworkBehaviourBuffer | From |
| The NetworkBehaviourBuffer instance representing the "from" state for interpolation. | |
| readonly NetworkBehaviourBuffer | To |
| The NetworkBehaviourBuffer instance representing the "to" state for interpolation. | |
| readonly bool | Valid |
| A value indicating whether this interpolator is valid. An interpolator is considered valid if it has successfully retrieved the "from" and "to" buffers. | |
The NetworkBehaviourBufferInterpolator struct is used to interpolate between two NetworkBehaviourBuffer instances. This is a read-only, ref struct, meaning it cannot be boxed and it can only be used on the stack.
| NetworkBehaviourBufferInterpolator | ( | NetworkBehaviour | nb | ) |
Constructor for the NetworkBehaviourBufferInterpolator struct.
| nb | The NetworkBehaviour instance that this interpolator is associated with. |
| float Angle | ( | NetworkBehaviour.PropertyReader< Angle > | property | ) |
Gets the interpolated angle of a property.
| property | The PropertyReader for the property to get the angle of. |
| float Angle | ( | string | property | ) |
Gets the interpolated angle of a property.
| property | The name of the property to get the angle of. |
| bool Bool | ( | NetworkBehaviour.PropertyReader< bool > | property | ) |
Gets the interpolated boolean value of a property.
| property | The PropertyReader for the property to get the boolean value of. |
| bool Bool | ( | string | property | ) |
Gets the interpolated boolean value of a property.
| property | The name of the property to get the boolean value of. |
| float Float | ( | NetworkBehaviour.PropertyReader< float > | property | ) |
Gets the interpolated float value of a property.
| property | The PropertyReader for the property to get the float value of. |
| float Float | ( | string | property | ) |
Gets the interpolated float value of a property.
| property | The name of the property to get the float value of. |
| int Int | ( | NetworkBehaviour.PropertyReader< int > | property | ) |
Gets the interpolated integer value of a property.
| property | The PropertyReader for the property to get the integer value of. |
| int Int | ( | string | property | ) |
Gets the interpolated integer value of a property.
| property | The name of the property to get the integer value of. |
| NetworkBool NetworkBool | ( | NetworkBehaviour.PropertyReader< NetworkBool > | property | ) |
Gets the interpolated NetworkBool value of a property.
| property | The PropertyReader for the property to get the boolean value of. |
| NetworkBool NetworkBool | ( | string | property | ) |
Gets the interpolated NetworkBool value of a property.
| property | The name of the property to get the boolean value of. |
|
static |
Implicit conversion operator to bool. This allows a NetworkBehaviourBufferInterpolator instance to be used in conditions directly.
| i | The NetworkBehaviourBufferInterpolator instance to convert. |
| Quaternion Quaternion | ( | NetworkBehaviour.PropertyReader< Quaternion > | property | ) |
Gets the interpolated Quaternion value of a property.
| property | The PropertyReader for the property to get the Quaternion value of. |
| Quaternion Quaternion | ( | string | property | ) |
Gets the interpolated Quaternion value of a property.
| property | The name of the property to get the Quaternion value of. |
| T Select< T > | ( | NetworkBehaviour.PropertyReader< T > | property | ) |
Selects the interpolated value of a property.
| T | The type of the property to select. Must be unmanaged. |
| property | The PropertyReader for the property to select. |
| T | : | unmanaged |
| T Select< T > | ( | string | property | ) |
Selects the interpolated value of a property by its name.
| T | The type of the property to select. Must be unmanaged. |
| property | The name of the property to select. |
| T | : | unmanaged |
| Vector2 Vector2 | ( | NetworkBehaviour.PropertyReader< Vector2 > | property | ) |
Gets the interpolated Vector2 value of a property.
| property | The PropertyReader for the property to get the Vector2 value of. |
| Vector2 Vector2 | ( | string | property | ) |
Gets the interpolated Vector2 value of a property.
| property | The name of the property to get the Vector2 value of. |
| Vector3 Vector3 | ( | NetworkBehaviour.PropertyReader< Vector3 > | property | ) |
Gets the interpolated Vector3 value of a property.
| property | The PropertyReader for the property to get the Vector3 value of. |
| Vector3 Vector3 | ( | string | property | ) |
Gets the interpolated Vector3 value of a property.
| property | The name of the property to get the Vector3 value of. |
| Vector4 Vector4 | ( | NetworkBehaviour.PropertyReader< Vector4 > | property | ) |
Gets the interpolated Vector4 value of a property.
| property | The PropertyReader for the property to get the Vector4 value of. |
| Vector4 Vector4 | ( | string | property | ) |
Gets the interpolated Vector4 value of a property.
| property | The name of the property to get the Vector4 value of. |