- Home /
Anyway to change the colour of collider outline in the editor?
I am trying to create a 2D platformer game with collision, however a lot of the sprites are green and because of this I can hardly see the collision outlines, is there anyway to change the colour of the colliders in the editor from green to any other colour, I have searched online and cannot find any answers.
Click the first button In the scene window's options bar. Change the shading mode to wireframe . This way you can adjust your collider to the correct size.
Answer by eses · Aug 30, 2018 at 07:49 AM
Hi, @Adamzx998
You can change the colour of collider outline in the editor for at least 2D colliders (which seems to be your case) by going to their Physics settings (not into Editor Color settings). This is per project setting, but at least you can do it.
1. Go to menu: Edit/Project Settings/Physics 2D
2. Then change the Gizmos / Collider Awake Color:
Thank you, this is exactly what I wanted. I would've never thought to look in the physics 2D section.
@Adamzx998 - Thanks! Not being able to customize colors of all the elements of 3d viewport properly is a drag... but at least there is this option.
Your answer
Follow this Question
Related Questions
Gameobject not detecting collison from other Box Collider 2D [SOLVED?] 2 Answers
Is it possible to detect collisions between 2d and 3d objects? 2 Answers
Problem with method Collider2D.isTouchingLayers() 4 Answers
Tilemap Collider 2D preventing objects from moving 2 Answers
How do I stop characters from standing on top of each other 1 Answer