Description

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.

Steps to Reproduce

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).

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

9
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.18
CreatedJul 21, 2016
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue