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
Description DistanceCondition maximum distance is not respected when changed at runtime as per the observer docs example. The cause is that internally the distance condition uses cached values like _sqrMaximumDistance which are not updated in the public property setter MaximumDistance.
Also, the example in the docs Modifying Conditions doesn't quite work either. The GetObserverCondition<DistanceCondition>() returns ObserverCondition so it needs to be cast to DistanceCondition before accessing the property.
Replication
Steps to reproduce the behavior:
Update a DistanceCondition maximum distance as per the docs Modifying Conditions
Observe that the observation distance does not change from its initial value.
Expected behavior
DistanceCondition maximum distance is correctly respected at runtime.
The text was updated successfully, but these errors were encountered:
- Fixed DistanceCondition.MaximumDistance not applying properly when set at runtime (#809).
- Obsoleted DistanceCondition.MaximumDistance.
- Added DistanceCondition.Get/SetMaximumDistance.
- Fixed predicted spawners not becoming an observer of the object they spawned.
- Fixed internals trying to call prediction methods on NetworkBehaviours when they do not utilize prediction when at least one NetworkBehaviour for the NetworkObject does.
- Fixed SyncTimers finishing immediately on clientsOnly when using timer.Update without arguments. (#807).
- Added TickNetworkBehaviour.SetTickCallbacks to set callbacks at runtime.
General
Unity version: 6.0.25
Fish-Networking version: 4.5.4hf0R
Discord link: Discord message
Description
DistanceCondition
maximum distance is not respected when changed at runtime as per the observer docs example. The cause is that internally the distance condition uses cached values like_sqrMaximumDistance
which are not updated in the public property setterMaximumDistance
.Also, the example in the docs Modifying Conditions doesn't quite work either. The
GetObserverCondition<DistanceCondition>()
returnsObserverCondition
so it needs to be cast toDistanceCondition
before accessing the property.Replication
Steps to reproduce the behavior:
Expected behavior
DistanceCondition maximum distance is correctly respected at runtime.
The text was updated successfully, but these errors were encountered: