You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a system that handles an Action in FixedUpdate because the action must be frame-time insensitive (also because of networking).
I try to set the action manually in PreUpdate during ManualControl.
I network my actions using ActionDiffs that are generated in FixedUpdate, bceause I need tick information.
i.e. since I set the Action value manually in PreUpdate, it only updates the update_value and not the fixed_update_value; so I cannot generate accurate diffs from it.
I'm not sure if it's a bug in lightyear, a bug in leafwing or just expected but I think it might be helpful to bring it up.
Solution
The solution was to put my system that manually updates the ActionState in FixedPreUpdate, so that the ActionDiffs are generated correctly
The text was updated successfully, but these errors were encountered:
What you did
I have a system that handles an Action in
FixedUpdate
because the action must be frame-time insensitive (also because of networking).I try to set the action manually in PreUpdate during
ManualControl
.I network my actions using
ActionDiffs
that are generated in FixedUpdate, bceause I need tick information.But then the ActionData becomes
i.e. since I set the Action value manually in PreUpdate, it only updates the
update_value
and not thefixed_update_value
; so I cannot generate accurate diffs from it.I'm not sure if it's a bug in lightyear, a bug in leafwing or just expected but I think it might be helpful to bring it up.
Solution
The solution was to put my system that manually updates the ActionState in
FixedPreUpdate
, so that the ActionDiffs are generated correctlyThe text was updated successfully, but these errors were encountered: