Add physics and lights debug drawing in prefabs when enabled.

This commit is contained in:
Chandler Cox
2024-08-06 17:06:23 -05:00
parent 0b03a5da0d
commit 3140865780
4 changed files with 69 additions and 7 deletions

View File

@@ -154,10 +154,6 @@ protected:
/// </summary>
void RemoveStaticActor();
#if USE_EDITOR
virtual void DrawPhysicsDebug(RenderView& view);
#endif
private:
void OnMaterialChanged();
@@ -169,6 +165,10 @@ public:
void ClosestPoint(const Vector3& point, Vector3& result) const final;
bool ContainsPoint(const Vector3& point) const final;
#if USE_EDITOR
virtual void DrawPhysicsDebug(RenderView& view);
#endif
protected:
// [PhysicsColliderActor]
void OnEnable() override;