NetworkedIKBone
A class in Root.Township, the global namespace.
Syncs one transform's local rotation from the server to clients, who blend toward it in fixed update.
- Listed in Global namespace: M to O
- Inherits or implements
NetworkEntityBehaviour,INetworkSerialized
Constructors
| Member | What it is |
|---|---|
NetworkedIKBone() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|---|
static AccumulativeAverageCount prepareForWriteTimer | Shared timing stats for PrepareForWrite. |
static AccumulativeAverageCount serializeTimer | Shared timing stats for Serialize. |
8 private and internal fields
Properties
| Member | What it is |
|---|---|
float LastSyncTime { get; private set; } | Time of the last sync, or 0 if none yet. |
3 private and internal properties
| Member | What it is |
|---|---|
private int Alta.Networking.INetworkSerialized.MaximumBits { get; } | 33 bits. |
private AccumulativeAverageCount Alta.Networking.INetworkSerialized.PrepareForWriteTimer { get; } | Returns the shared prepareForWriteTimer. |
private AccumulativeAverageCount Alta.Networking.INetworkSerialized.SerializeTimer { get; } | Returns the shared serializeTimer. |
Methods
| Member | What it is |
|---|---|
override void Initialize() | Marks the component initialized. |
bool PrepareForWrite(bool isWriteFull) | True if the rotation has moved more than angleThreshold since it was last sent. |
void Serialize(Stream stream, bool isWriteFull) | Writes or reads a flag and the compressed rotation. |