Procedural mesh cube

Ive got a system where I will always cut a procedural mesh cube into smaller cubes but I need to get the size of the cube for my other system, is there any way I can get the size of the procedural cube? Ive tried using Get Component Bounds but when it rotates it gives off the wrong bounds. Is there anyway I can fix that or another way to do this?