Files
sbox-public/engine/Sandbox.Engine/Scene/Components/Component.Gizmos.cs

16 lines
372 B
C#

namespace Sandbox;
public abstract partial class Component
{
/// <summary>
/// Called in the editor to draw things like bounding boxes etc
/// </summary>
protected virtual void DrawGizmos() { }
internal void DrawGizmosInternal()
{
try { DrawGizmos(); }
catch ( System.Exception e ) { Log.Error( e, $"Exception when calling 'DrawGizmos' on {this}" ); }
}
}