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
- StackOverflowException occurs and tests fail to load when the Test Runner window is opened while System.Windows.Forms.dll and System.Deployment.dll are present in the project
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
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().