world generation

im making a voxel type game currently, and i have run into sort of a road block with my world generation.

i want the world to dynamically generate, sorta like how minecraft does, and have it working pretty much the way i want, but the game crashes at around 50 000 generated objects.
is there any way to be able to optimize it to be able to create an infinite world?

(im assuming the crashes are caused by the number of objects)

You can’t have that many individual objects; look at the various Minecraft threads about using the Mesh class.

–Eric

is there any good tutorials you can recomend? i cant seem to make too much sense of the unity script reference, (tho that might be because i have onlye had 2 hours of sleep)