Creating GameObject
in FixedUpdate
doesn't exit the FixedUpdate Interpolation context
#5553
Labels
bug
Something isn't working
Describe the bug
According to this discord discussion with conna,
Currently creating a
GameObject
in anOnFixedUpdate()
will not leave the fixed update interpolation context, creating some confusing behavior between theOnUpdate
andOnFixedUpdate
behaviorLet's take a look at the reproduction steps
To Reproduce
NetworkTest.cs
, it's the player component.By pressing
attack1
, 2 identicals gameobject will be spawned :OnUpdate
contextOnFixedUpdate
contextMoney.cs
is just a simple GameObject with aMoneyChild
child GameObject who rotating on himself & hasTransform.LocalRotation = Rotation.FromPitch( 90f );
onOnAwake
OnFixedUpdate
aren't leaving his interpolation context even if the GameObject is in hisOnAwake
contextThis is confusing.
Expected behavior
As conna says :
Media/Files
Reproduction steps in video:
2024-05-22.11-27-47.mp4
Additional context
No response
The text was updated successfully, but these errors were encountered: