mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 17:00:23 -04:00
16 lines
372 B
C#
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}" ); }
|
|
}
|
|
}
|