FSequencerTimeSliderController::DetermineOptimalSpacing

Determines the optimal spacing between tick marks in the slider for a given pixel density Increments until a minimum amount of slate units specified by MinTick is reached

Windows
MacOS
Linux

References

Module

Sequencer

Header

/Engine/Source/Editor/Sequencer/Public/SequencerTimeSliderController.h

Include

#include "SequencerTimeSliderController.h"

Syntax

float DetermineOptimalSpacing
(
    float InPixelsPerInput,
    uint32 MinTick,
    float MinTickSpacing
) const

Remarks

Determines the optimal spacing between tick marks in the slider for a given pixel density Increments until a minimum amount of slate units specified by MinTick is reached

Returns

the optimal spacing in time units

Parameters

Parameter

Description

InPixelsPerInput

The density of pixels between each input

MinTick

The minimum slate units per tick allowed

MinTickSpacing

The minimum tick spacing in time units allowed

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss