Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.2.0f1
2019.3.0a1
Issue ID
1185294
Regression
No
[Playables] PlayableGraph.Evaluate() has no effect if called in Start()
How to reproduce:
1. Open the attached "PlayableEvaluateStart.zip" project
2. Open scene "SampleScene"
3. Enter Play mode
4. In the console, observe that the hip rotation value is identical before and after calling Evaluate at time 0
5. Focus the Game view and press "Z"
6. In the console, observe that the hip rotation value is now different when calling Evaluate at time 0
Expected results: The printed value should be identical when calling Evaluate in Start() and in Update()
Actual results: When Evaluate is called in Start() it has no effect on the printed value
Reproducible with: 2018.4.10f1, 2019.2.7f1, 2019.3.0b3, 2020.1.0a7
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Resolution Note:
The issue is cause by the execution order (https://docs.unity3d.com/Manual/ExecutionOrder.html) of the play loop. When we enter the play loop, Start() or Awake() happen before the scene rendering Cull is called, the renderer never got a chance to be set visible. Since the Animator will only animate Visible object it will be skipped in this case. A workaround to have evaluate working all the time would be to change the "Culling Mode" in Animator to "Always Animated", call Evaluate then switch it back to the before state. This issue can also be viewed on the first few Update() after the Start().