Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2017.4.X, 2018.1.X
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
- A different Font Asset is applied when the original Font Asset is deleted while UI Builder is open
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
Add comment