Interface IInputComponentData
A special component data interface used for storing player inputs.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public interface IInputComponentData : IComponentData, IQueryTypeParameter
Remarks
When using the netcode package these inputs will be automatically handled like command data and will be stored in a buffer synchronized between client and server. This is compatible with netcode features like prediction.
Methods
ToFixedString()
Implement this to get Burst-compatible input struct packet dump logging. Recommended format: $"field1:, field2:";
Declaration
FixedString512Bytes ToFixedString()
Returns
Type | Description |
---|---|
Fixed |
Field values of your input struct. |
Remarks
This function must be burst compatible too, otherwise you'll get burst compiler errors.