Search Issue Tracker
Fixed in 2018.2
Fixed in 2017.4, 2018.1
Votes
0
Found in
2017.3.0p1
2017.3.0a6
Issue ID
1013161
Regression
Yes
Loaded Asset's rateOverDistance value is reset to zero when field's value is printed out with Debug.Log()
To reproduce:
1. Open attached project
2. In Project window, select TestParticleSystem
3. In Inspector window->Particle System component->Emission module, change Rate over Distance to any value
4. In main menu toolbar, press ReadRateOverDistance->ReadRateOverDistance
5. Observe Rate over Distance Debug Logging the parameter's value
Expected: value doesn't change
Actual: value is reset to zero when Debug.Log() is executed to print out the parameter (check .gif attached)
Reproduced in: 2017.3.0a6, 2017.3.1p4, 2018.1.0b11, 2018.2.0a5
Not reproduced in: 2017.1.3p2, 2017.2.2p1, 2017.3.0a5
Note: fraction of script used to load Assets while in edit mode:
ParticleSystem ps = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/TestParticleSystem.prefab").GetComponent<ParticleSystem>();
Debug.Log(ps.emission.rateOverDistance.constant);
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader error db grows on each build
- Android ARCore build fails with 2019.4 due to outdated Gradle
- [tvOS] Visual artifacts are present when Ambient Occlusion is enabled and Dynamic Resolution is reduced
- Texture Importer Inspector throws errors when a built-in texture inspector is overwritten in C#
- Invalid AABB error is thrown when moving a Particle with Velocity over Lifetime and Limit Velocity over Lifetime modules
Add comment