Interface ICustomSync
Custom SyncObjects must inherit from SyncBase and implement this interface.
Namespace: FishNet.Object.Synchronizing
Assembly: FishNet.Runtime.dll
Syntax
public interface ICustomSync
Methods
GetSerializedType()
Get the serialized type. This must return the value type you are synchronizing, for example a struct or class. If you are not synchronizing a particular value but instead of supported values such as int, bool, ect, then you may return null on this method.
Declaration
object GetSerializedType()
Returns
Type | Description |
---|---|
System.Object |