Hey. Is there a way to change how the colliders are drawn in the editor?
I’m working on AI for my game right now and I want to setup areas where the AI can jump, crouch, camp etc… and represent each area with a different color (The collider/trigger is the area where this will occur)…
I have this right now, but the green color of the collider is overlapping my color:
using UnityEngine;
using System.Collections;
public class BotJumpArea : MonoBehaviour {
void OnDrawGizmosSelected()
{
Gizmos.color = Color.cyan;
Gizmos.DrawWireCube (transform.position, transform.renderer.bounds.size);
}
}
The only way to see the color is to disable the collider, which I don’t want to do… Is there a way to disable the trigger/collider in Editor Mode only? And if there is a way to make this trigger a filled cube (transparent) I would like to know how too ![]()
Good morning and thank you!