Nez.Portable/ECS/Components/Renderables/RenderableComponent.cs
/// <summary>
/// renders the bounds only if there is no collider. Always renders a square on the origin.
/// </summary>
/// <param name="graphics">Graphics.</param>
renders the bounds only if there is no collider. Always renders a square on the origin.
renders the bounds only if there is no collider . Always renders a square on the origin .
public override void debugRender(Graphics graphics)
        {
            if (entity.getComponent<Collider>() == null)
                graphics.batcher.drawHollowRect(bounds, Debug.Colors.renderableBounds);
            graphics.batcher.drawPixel(entity.transform.position + _localOffset, Debug.Colors.renderableCenter, 4);
        }
public override void debugRender ( Graphics graphics ) { if ( entity . getComponent < Collider > ( ) == null ) graphics . batcher . drawHollowRect ( bounds , Debug . Colors . renderableBounds ) ; graphics . batcher . drawPixel ( entity . transform . position + _localOffset , Debug . Colors . renderableCenter , 4 ) ; }
renders the bounds only if there is no collider.
renders the bounds only if there is no collider .
// if we have no collider draw our bounds // draw a square for our pivot/origin
graphics
Graphics
None