lightyear icon indicating copy to clipboard operation
lightyear copied to clipboard

Support per component visibility/relevance

Open notmd opened this issue 1 year ago • 2 comments

bevy_replicon has a disscution including a summary of planned implementation details here https://github.com/projectharmonia/bevy_replicon/issues/304

notmd avatar Jul 16 '24 07:07 notmd

Note that you can override the NetworkTarget for a specific component like this: https://docs.rs/lightyear/latest/lightyear/shared/replication/components/struct.OverrideTargetComponent.html

it might be less elegant than the mask idea proposed in replicon, but it should be enough for most cases currently.

You can find an example here: https://github.com/cBournhonesque/lightyear/blob/main/examples/avian_physics/src/server.rs#L160

Would that work for you?

cBournhonesque avatar Jul 16 '24 13:07 cBournhonesque

Oh didn't know the OverrideTargeteComponent. It is fine for my use case, but supporting the mask solution would be great.

notmd avatar Jul 16 '24 13:07 notmd

This has been

cBournhonesque avatar Jun 24 '25 17:06 cBournhonesque