FFrameRate::ComputeGridSpacing

Compute a desirable grid spacing for the specified screen units

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/FrameRate.h

Include

#include "Misc/FrameRate.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/FrameRate.cpp

Syntax

bool ComputeGridSpacing
(
    const float PixelsPerSecond,
    double & OutMajorInterval,
    int32 & OutMinorDivisions,
    float MinTickPx,
    float DesiredMajorTickPx
) const

Remarks

Compute a desirable grid spacing for the specified screen units

Returns

True if a valid grid spacing was computed, false otherwise.

Parameters

Parameter

Description

PixelsPerSecond

The number of pixels representing a second of time

OutMajorInterval

(Out) The interval in seconds at which to draw major grid lines

OutMinorDivisions

(Out) The number of divisions to draw between major tick lines

MinTickPx

(Optional) The smallest size in pixels that is desirable between ticks

DesiredMajorTickPx

(Optional) The desired size to compute major tick lines from

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback