Merge branch 'audio-debug-video-player' of https://github.com/Tryibion/FlaxEngine into Tryibion-audio-debug-video-player
This commit is contained in:
@@ -152,6 +152,18 @@ int32 VideoPlayer::GetFramesCount() const
|
||||
return _player.FramesCount;
|
||||
}
|
||||
|
||||
#if USE_EDITOR
|
||||
#include "Engine/Debug/DebugDraw.h"
|
||||
|
||||
void VideoPlayer::OnDebugDrawSelected()
|
||||
{
|
||||
// Draw influence range
|
||||
if (_isSpatial)
|
||||
DEBUG_DRAW_WIRE_SPHERE(BoundingSphere(_transform.Translation, _minDistance), Color::CornflowerBlue, 0, true);
|
||||
Actor::OnDebugDrawSelected();
|
||||
}
|
||||
#endif
|
||||
|
||||
bool VideoPlayer::IntersectsItself(const Ray& ray, Real& distance, Vector3& normal)
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -221,6 +221,8 @@ public:
|
||||
const Vector3 size(50);
|
||||
return BoundingBox(_transform.Translation - size, _transform.Translation + size);
|
||||
}
|
||||
|
||||
void OnDebugDrawSelected() override;
|
||||
#endif
|
||||
bool IntersectsItself(const Ray& ray, Real& distance, Vector3& normal) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user