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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment