Both.
I meticulously plot, build, and develop the world, story beats, intended consequences, and the characters. Then, I drop a few threads and hooks and let the characters breathe and play in the world.
Discovering the "How it happens" is all part of the fun, and almost as enjoyable writing, as...