A user has found and reported a divide by zero warning within the Construction Script when packaging for Windows. This does not occur while in the editor as when you begin moving around the blueprint, it returns a float value of 2.0315.
It seems that somewhere during the packaging/cooking process this float value is discarded or lost. Thereby returning a null value and causing a divide by zero warning message.
I did find a way around this, which was to add a not equal to zero boolean check from the float value. If the value is not zero, then it should print to the log and the screen with the correct float value.
1. Download and Open attached project.
2. File > Package Project > Windows (64 bit)
3. Open the Output Log
Result The output log returns a divide by zero warning
Expected The construction script returns the SizeX of the Texture 2D reference as a float value (2.0315).
Head over to the existing Questions & Answers thread and let us know what's up.
9 |
Component | UE - Graphics Features |
---|---|
Affects Versions | 4.18 |
Created | Jul 21, 2016 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |