This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
Feature Request: Make TransformSynchronizationStrategy Apply function public #730
Labels
A: transform-synchronization
Area: Transform synchronization feature module
S: being-considered
Status: This issue is being considered.
T: enhancement
Type: This is an improvement to an existing feature
Description
When writing a custom ECS system for which TransformSynchronization is wanted, one can setup all the needed Components on the correct entities, however, the TransformSynchronization strategy cannot currently be set from ECS because the Apply function on
TransformSynchronizationSendStrategy
andTransformSynchronizationReceiveStrategy
is internal.Could this API be made public ?
Expected behaviour
Our own could should be able to call
TransformSynchronizationReceiveStrategy.Apply
andTransformSynchronizationSendStrategy.Apply
Current behaviour
Function is internal and only accessible within the transformSynchronization module
Possible solution
Make the
Apply
function publicSteps to reproduce
Write an ECS system that sets up transformSynchronization, for example, in my top-down game, we use server side pathing for the player and only receive the destination coordinates for the client, then do all the pathing server side and sync it back to the client with TransformSynchronization, see snippet here for details if needed: https://gist.github.com/luna-duclos/dc06674a877be04cece8788d3d3bae82
NavInitializationSystem.cs:82 is where the call to apply resides that is currently impossible to do.
The text was updated successfully, but these errors were encountered: