UE3SDKGenerator icon indicating copy to clipboard operation
UE3SDKGenerator copied to clipboard

classSize = sizeof(UBoolProperty); Get size error

Open VTLOWKEY opened this issue 3 years ago • 4 comments

image image image image image image image

BUT WHY

image

GET SIZE IS 144???

VTLOWKEY avatar Feb 15 '22 13:02 VTLOWKEY

All I can recommend is you make sure you know the difference between hex and decimal values for offsets, and double check everything with the C macro offsetof to make sure you have all your class alignments correct for you compiler.

ItsBranK avatar Feb 15 '22 20:02 ItsBranK

Okay thanks

VTLOWKEY avatar Feb 18 '22 11:02 VTLOWKEY

I got this same exact error. I ended up hard-coding the size of UBoolProperty to 140 lol. Surely this has something to do with the compiler guessing the sizeof UBoolProperty incorrectly.

CoolA1d avatar May 02 '22 02:05 CoolA1d

If its a compiler issue you might have to manually set the right class alignment for your project, can debug with sizeof and the offsetof macro which you can do yourself easily.

https://docs.microsoft.com/en-us/cpp/preprocessor/pack?view=msvc-170#examples

ItsBranK avatar May 16 '22 12:05 ItsBranK