Paper2D-Tilemap Component Generated at Runtime not Generating Collision

I put the brackets in, and it had no bearing on the problem.

That if statement was just a sanity check to make sure the TileMapComponent had been created, anyway. It was meant to stop the execution of lines 9 through 11 if the component hadn’t been properly created somehow. If it wasn’t there at all, and the component hadn’t been created, the program would simply crash when trying to execute lines 9 through 11.

As it stands, missing the brackets don’t really matter in relation to the problem.