Best way to add a basic with collision?

I’m trying to add some basic shapes for testing purposes but I’m having difficulties doing so.

I know I can use a sprite and just resize it but there must be a better way to go about this.

Also, I attempted to add a basic alpha blended material but couldn’t quite figure out how.

I’m using a 2D collision box.

Not really clear what you’re asking. You don’t need to add any materials to sprites, just make sure the texture is of type Sprite and drag it into the scene. This creates a GameObject with the appropriate SpriteRenderer. To add a collider, select the sprite, then use the component menu and choose one of the options from the Physics2D submenu (box, circle, etc.).

–Eric

I suppose what I was asking is there a way to add blocks, or shapes without having to add graphics(eg: sprites). I’d like to add a basic shape such as a square and just fill it with a renderer. That basic shape would also have a collider, but I know where to find those.

No, sprites need to have an image in order to render anything. It takes a few seconds in Photoshop to make a square or circle.

–Eric

That’s what I’ve been doing. It just seemed weird to me that you could make a 3D cube with a material facing but not a 2D cube. Probably something the developers should consider. These inconsistencies are driving me bonkers.