I traced an image on Photoshop and tried to fill it after I closed it (using the pen tool) and it keeps filling the space outside of the object to the edge of the canvas, which is what I don't want it to do. How do I switch it to fill my object?
For what you have in mind, one option would be to set the Pen tool's options bar as seen here before you begin.:
Note that it is set to Shape.
Since you have set it to Path, and made the path, go to the Paths panel and click on the "Load Path as a Selection" symbol.
Then Edit > Fill the selection with your chosen color
Thank you so much for your help! That was the issue!